Lines Matching refs:Vec
33 use crate::vec::Vec;
97 use crate::vec::Vec;
102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec()
106 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec()
112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec()
118 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
126 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
128 vec: &'a mut Vec<T, A>, in to_vec()
141 let mut vec = Vec::with_capacity_in(s.len(), alloc); in to_vec()
163 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
164 let mut v = Vec::with_capacity_in(s.len(), alloc); in to_vec()
362 let mut indices: Vec<_> = in sort_by_cached_key()
414 pub fn to_vec(&self) -> Vec<T> in to_vec()
438 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in()
463 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec()
491 pub fn repeat(&self, n: usize) -> Vec<T> in repeat()
496 return Vec::new(); in repeat()
506 let mut buf = Vec::with_capacity(capacity); in repeat()
623 pub fn to_ascii_uppercase(&self) -> Vec<u8> { in to_ascii_uppercase()
644 pub fn to_ascii_lowercase(&self) -> Vec<u8> { in to_ascii_lowercase()
710 type Output = Vec<T>;
712 fn concat(slice: &Self) -> Vec<T> { in concat()
714 let mut result = Vec::with_capacity(size); in concat()
725 type Output = Vec<T>;
727 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
734 let mut result = Vec::with_capacity(size); in join()
748 type Output = Vec<T>;
750 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join()
758 let mut result = Vec::with_capacity(size); in join()
774 impl<T, A: Allocator> Borrow<[T]> for Vec<T, A> { implementation
781 impl<T, A: Allocator> BorrowMut<[T]> for Vec<T, A> { implementation
792 fn clone_into(&self, target: &mut Vec<T, A>); in clone_into()
797 default fn clone_into(&self, target: &mut Vec<T, A>) { in clone_into()
813 fn clone_into(&self, target: &mut Vec<T, A>) { in clone_into()
822 type Owned = Vec<T>;
824 fn to_owned(&self) -> Vec<T> { in to_owned()
829 fn to_owned(&self) -> Vec<T> { in to_owned()
833 fn clone_into(&self, target: &mut Vec<T>) { in clone_into()