Lines Matching refs:Vec

103 use crate::vec::Vec;
162 use crate::vec::Vec;
167 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec()
171 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec()
177 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec()
183 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
191 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
193 vec: &'a mut Vec<T, A>, in to_vec()
206 let mut vec = Vec::with_capacity_in(s.len(), alloc); in to_vec()
228 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
229 let mut v = Vec::with_capacity_in(s.len(), alloc); in to_vec()
427 let mut indices: Vec<_> = in sort_by_cached_key()
479 pub fn to_vec(&self) -> Vec<T> in to_vec()
503 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in()
528 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec()
556 pub fn repeat(&self, n: usize) -> Vec<T> in repeat()
561 return Vec::new(); in repeat()
571 let mut buf = Vec::with_capacity(capacity); in repeat()
688 pub fn to_ascii_uppercase(&self) -> Vec<u8> { in to_ascii_uppercase()
709 pub fn to_ascii_lowercase(&self) -> Vec<u8> { in to_ascii_lowercase()
775 type Output = Vec<T>;
777 fn concat(slice: &Self) -> Vec<T> { in concat()
779 let mut result = Vec::with_capacity(size); in concat()
790 type Output = Vec<T>;
792 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
799 let mut result = Vec::with_capacity(size); in join()
813 type Output = Vec<T>;
815 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join()
823 let mut result = Vec::with_capacity(size); in join()
839 impl<T> Borrow<[T]> for Vec<T> { implementation
846 impl<T> BorrowMut<[T]> for Vec<T> { implementation
855 type Owned = Vec<T>;
857 fn to_owned(&self) -> Vec<T> { in to_owned()
862 fn to_owned(&self) -> Vec<T> { in to_owned()
866 fn clone_into(&self, target: &mut Vec<T>) { in clone_into()
1111 let mut buf = Vec::with_capacity(len / 2); in merge_sort()