Lines Matching refs:A
104 pub struct Vec<T, A: Allocator> {
112 _p: PhantomData<A>,
155 unsafe impl<T, A> Send for Vec<T, A>
158 A: Allocator,
163 unsafe impl<T, A> Sync for Vec<T, A>
166 A: Allocator,
170 impl<T, A> Vec<T, A>
172 A: Allocator,
295 _p: PhantomData::<A>, in new()
567 _p: PhantomData::<A>, in from_raw_parts()
645 A::realloc( in reserve()
738 impl<T: Clone, A: Allocator> Vec<T, A> {
831 impl<T, A> Drop for Vec<T, A>
833 A: Allocator,
847 unsafe { A::free(self.ptr.cast(), self.layout.into()) }; in drop()
851 impl<T, A, const N: usize> From<Box<[T; N], A>> for Vec<T, A>
853 A: Allocator,
855 fn from(b: Box<[T; N], A>) -> Vec<T, A> { in from() argument
869 impl<T, A: Allocator> Default for Vec<T, A> {
876 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
882 impl<T, A> Deref for Vec<T, A>
884 A: Allocator,
896 impl<T, A> DerefMut for Vec<T, A>
898 A: Allocator,
925 impl<T, A> Borrow<[T]> for Vec<T, A>
927 A: Allocator,
951 impl<T, A> BorrowMut<[T]> for Vec<T, A>
953 A: Allocator,
960 impl<T: Eq, A> Eq for Vec<T, A> where A: Allocator {}
962 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A>
964 A: Allocator,
974 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A>
976 A: Allocator,
1000 [A: Allocator] Vec<T, A>, &[U],
1001 [A: Allocator] Vec<T, A>, &mut [U],
1002 [A: Allocator] &[T], Vec<U, A>,
1003 [A: Allocator] &mut [T], Vec<U, A>,
1004 [A: Allocator] Vec<T, A>, [U],
1005 [A: Allocator] [T], Vec<U, A>,
1006 [A: Allocator, const N: usize] Vec<T, A>, [U; N],
1007 [A: Allocator, const N: usize] Vec<T, A>, &[U; N],
1010 impl<'a, T, A> IntoIterator for &'a Vec<T, A>
1012 A: Allocator,
1022 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A>
1024 A: Allocator,
1084 pub struct IntoIter<T, A: Allocator> {
1089 _p: PhantomData<A>,
1092 impl<T, A> IntoIter<T, A>
1094 A: Allocator,
1140 pub fn collect(self, flags: Flags) -> Vec<T, A> { in collect() argument
1165 A::realloc( in collect()
1194 impl<T, A> Iterator for IntoIter<T, A>
1196 A: Allocator,
1253 impl<T, A> Drop for IntoIter<T, A>
1255 A: Allocator,
1264 unsafe { A::free(self.buf.cast(), self.layout.into()) }; in drop()
1268 impl<T, A> IntoIterator for Vec<T, A>
1270 A: Allocator,
1273 type IntoIter = IntoIter<T, A>;
1314 _p: PhantomData::<A>, in into_iter()