Lines Matching refs:A

101 pub struct Vec<T, A: Allocator> {
109 _p: PhantomData<A>,
152 unsafe impl<T, A> Send for Vec<T, A>
155 A: Allocator,
160 unsafe impl<T, A> Sync for Vec<T, A>
163 A: Allocator,
167 impl<T, A> Vec<T, A>
169 A: Allocator,
282 _p: PhantomData::<A>, in new()
554 _p: PhantomData::<A>, in from_raw_parts()
632 A::realloc( in reserve()
724 impl<T: Clone, A: Allocator> Vec<T, A> {
817 impl<T, A> Drop for Vec<T, A>
819 A: Allocator,
833 unsafe { A::free(self.ptr.cast(), self.layout.into()) }; in drop()
837 impl<T, A, const N: usize> From<Box<[T; N], A>> for Vec<T, A>
839 A: Allocator,
841 fn from(b: Box<[T; N], A>) -> Vec<T, A> { in from() argument
855 impl<T, A: Allocator> Default for Vec<T, A> {
862 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
868 impl<T, A> Deref for Vec<T, A>
870 A: Allocator,
882 impl<T, A> DerefMut for Vec<T, A>
884 A: Allocator,
911 impl<T, A> Borrow<[T]> for Vec<T, A>
913 A: Allocator,
937 impl<T, A> BorrowMut<[T]> for Vec<T, A>
939 A: Allocator,
946 impl<T: Eq, A> Eq for Vec<T, A> where A: Allocator {}
948 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A>
950 A: Allocator,
960 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A>
962 A: Allocator,
986 [A: Allocator] Vec<T, A>, &[U],
987 [A: Allocator] Vec<T, A>, &mut [U],
988 [A: Allocator] &[T], Vec<U, A>,
989 [A: Allocator] &mut [T], Vec<U, A>,
990 [A: Allocator] Vec<T, A>, [U],
991 [A: Allocator] [T], Vec<U, A>,
992 [A: Allocator, const N: usize] Vec<T, A>, [U; N],
993 [A: Allocator, const N: usize] Vec<T, A>, &[U; N],
996 impl<'a, T, A> IntoIterator for &'a Vec<T, A>
998 A: Allocator,
1008 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A>
1010 A: Allocator,
1033 pub struct IntoIter<T, A: Allocator> {
1038 _p: PhantomData<A>,
1041 impl<T, A> IntoIter<T, A>
1043 A: Allocator,
1089 pub fn collect(self, flags: Flags) -> Vec<T, A> { in collect() argument
1114 A::realloc(Some(buf.cast()), layout.into(), old_layout.into(), flags) in collect()
1137 impl<T, A> Iterator for IntoIter<T, A>
1139 A: Allocator,
1196 impl<T, A> Drop for IntoIter<T, A>
1198 A: Allocator,
1207 unsafe { A::free(self.buf.cast(), self.layout.into()) }; in drop()
1211 impl<T, A> IntoIterator for Vec<T, A>
1213 A: Allocator,
1216 type IntoIter = IntoIter<T, A>;
1257 _p: PhantomData::<A>, in into_iter()