Lines Matching refs:to_vec
186 let mut vec = self.get_bytes(len)?.to_vec(); in get_varint()
299 pub fn to_vec(&self) -> Vec<u8> { in to_vec() method
300 self.as_ref().to_vec() in to_vec()
405 let mut vec = self.get_bytes(len)?.to_vec(); in get_varint()
627 pub fn to_vec(&self) -> Vec<u8> { in to_vec() method
628 self.as_ref().to_vec() in to_vec()
1067 let mut d = b"helloworld".to_vec(); in split()
1093 let mut d = b"helloworld".to_vec(); in split_at()
1099 let mut exp1 = b"hello".to_vec(); in split_at()
1102 let mut exp2 = b"world".to_vec(); in split_at()
1110 let mut exp1 = b"helloworld".to_vec(); in split_at()
1113 let mut exp2 = b"".to_vec(); in split_at()
1121 let mut exp1 = b"helloworl".to_vec(); in split_at()
1124 let mut exp2 = b"d".to_vec(); in split_at()
1136 let d = b"helloworld".to_vec(); in slice()
1140 let exp = b"hello".to_vec(); in slice()
1146 let exp = b"".to_vec(); in slice()
1154 let exp = b"world".to_vec(); in slice()
1166 let mut d = b"helloworld".to_vec(); in slice_mut()
1170 let mut exp = b"hello".to_vec(); in slice_mut()
1176 let mut exp = b"".to_vec(); in slice_mut()
1184 let mut exp = b"world".to_vec(); in slice_mut()
1196 let d = b"helloworld".to_vec(); in slice_last()
1200 let exp = b"orld".to_vec(); in slice_last()
1206 let exp = b"d".to_vec(); in slice_last()
1212 let exp = b"".to_vec(); in slice_last()
1218 let exp = b"helloworld".to_vec(); in slice_last()
1230 let mut d = b"helloworld".to_vec(); in slice_last_mut()
1234 let mut exp = b"orld".to_vec(); in slice_last_mut()
1240 let mut exp = b"d".to_vec(); in slice_last_mut()
1246 let mut exp = b"".to_vec(); in slice_last_mut()
1252 let mut exp = b"helloworld".to_vec(); in slice_last_mut()