Lines Matching refs:T

167     pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> {  in into_vec()  argument
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() argument
178 T::to_vec(s, alloc) in to_vec()
189 impl<T: Clone> ConvertVec for T { implementation
192 struct DropGuard<'a, T, A: Allocator> { in to_vec()
193 vec: &'a mut Vec<T, A>, in to_vec()
196 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { in to_vec()
226 impl<T: Copy> ConvertVec for T { implementation
243 impl<T> [T] { implementation
276 T: Ord, in sort()
332 F: FnMut(&T, &T) -> Ordering, in sort_by() argument
374 F: FnMut(&T) -> K, in sort_by_key()
421 F: FnMut(&T) -> K, in sort_by_cached_key()
479 pub fn to_vec(&self) -> Vec<T> in to_vec()
481 T: Clone, in to_vec()
503 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in() argument
505 T: Clone, in to_vec_in()
528 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec() argument
556 pub fn repeat(&self, n: usize) -> Vec<T> in repeat()
558 T: Copy, in repeat()
583 (buf.as_mut_ptr() as *mut T).add(buf.len()), in repeat()
604 (buf.as_mut_ptr() as *mut T).add(buf.len()), in repeat()
774 impl<T: Clone, V: Borrow<[T]>> Concat<T> for [V] {
775 type Output = Vec<T>;
777 fn concat(slice: &Self) -> Vec<T> { in concat() argument
789 impl<T: Clone, V: Borrow<[T]>> Join<&T> for [V] {
790 type Output = Vec<T>;
792 fn join(slice: &Self, sep: &T) -> Vec<T> { in join() argument
812 impl<T: Clone, V: Borrow<[T]>> Join<&[T]> for [V] {
813 type Output = Vec<T>;
815 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join() argument
839 impl<T> Borrow<[T]> for Vec<T> {
840 fn borrow(&self) -> &[T] { in borrow() argument
846 impl<T> BorrowMut<[T]> for Vec<T> {
847 fn borrow_mut(&mut self) -> &mut [T] { in borrow_mut() argument
854 impl<T: Clone> ToOwned for [T] { implementation
855 type Owned = Vec<T>;
857 fn to_owned(&self) -> Vec<T> { in to_owned() argument
862 fn to_owned(&self) -> Vec<T> { in to_owned() argument
866 fn clone_into(&self, target: &mut Vec<T>) { in clone_into() argument
888 fn insert_head<T, F>(v: &mut [T], is_less: &mut F) in insert_head() argument
890 F: FnMut(&T, &T) -> bool, in insert_head()
938 struct InsertionHole<T> { in insert_head()
939 src: *const T, in insert_head()
940 dest: *mut T, in insert_head()
943 impl<T> Drop for InsertionHole<T> { in insert_head()
960 unsafe fn merge<T, F>(v: &mut [T], mid: usize, buf: *mut T, is_less: &mut F) in merge() argument
962 F: FnMut(&T, &T) -> bool, in merge()
1039 unsafe fn get_and_increment<T>(ptr: &mut *mut T) -> *mut T { in merge() argument
1045 unsafe fn decrement_and_get<T>(ptr: &mut *mut T) -> *mut T { in merge() argument
1051 struct MergeHole<T> { in merge()
1052 start: *mut T, in merge()
1053 end: *mut T, in merge()
1054 dest: *mut T, in merge()
1057 impl<T> Drop for MergeHole<T> { in merge()
1081 fn merge_sort<T, F>(v: &mut [T], mut is_less: F) in merge_sort() argument
1083 F: FnMut(&T, &T) -> bool, in merge_sort()
1091 if size_of::<T>() == 0 { in merge_sort()