Lines Matching refs:A

98 pub struct Vec<T, A: Allocator> {
106 _p: PhantomData<A>,
149 unsafe impl<T, A> Send for Vec<T, A>
152 A: Allocator,
157 unsafe impl<T, A> Sync for Vec<T, A>
160 A: Allocator,
164 impl<T, A> Vec<T, A>
166 A: Allocator,
258 _p: PhantomData::<A>, in new()
384 _p: PhantomData::<A>, in from_raw_parts()
442 A::realloc( in reserve()
460 impl<T: Clone, A: Allocator> Vec<T, A> {
526 impl<T, A> Drop for Vec<T, A>
528 A: Allocator,
542 unsafe { A::free(self.ptr.cast(), self.layout.into()) }; in drop()
546 impl<T, A, const N: usize> From<Box<[T; N], A>> for Vec<T, A>
548 A: Allocator,
550 fn from(b: Box<[T; N], A>) -> Vec<T, A> { in from() argument
571 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
577 impl<T, A> Deref for Vec<T, A>
579 A: Allocator,
591 impl<T, A> DerefMut for Vec<T, A>
593 A: Allocator,
603 impl<T: Eq, A> Eq for Vec<T, A> where A: Allocator {}
605 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A>
607 A: Allocator,
617 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A>
619 A: Allocator,
643 [A: Allocator] Vec<T, A>, &[U],
644 [A: Allocator] Vec<T, A>, &mut [U],
645 [A: Allocator] &[T], Vec<U, A>,
646 [A: Allocator] &mut [T], Vec<U, A>,
647 [A: Allocator] Vec<T, A>, [U],
648 [A: Allocator] [T], Vec<U, A>,
649 [A: Allocator, const N: usize] Vec<T, A>, [U; N],
650 [A: Allocator, const N: usize] Vec<T, A>, &[U; N],
653 impl<'a, T, A> IntoIterator for &'a Vec<T, A>
655 A: Allocator,
665 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A>
667 A: Allocator,
690 pub struct IntoIter<T, A: Allocator> {
695 _p: PhantomData<A>,
698 impl<T, A> IntoIter<T, A>
700 A: Allocator,
746 pub fn collect(self, flags: Flags) -> Vec<T, A> { in collect() argument
770 A::realloc(Some(buf.cast()), layout.into(), old_layout.into(), flags) in collect()
793 impl<T, A> Iterator for IntoIter<T, A>
795 A: Allocator,
852 impl<T, A> Drop for IntoIter<T, A>
854 A: Allocator,
863 unsafe { A::free(self.buf.cast(), self.layout.into()) }; in drop()
867 impl<T, A> IntoIterator for Vec<T, A>
869 A: Allocator,
872 type IntoIter = IntoIter<T, A>;
913 _p: PhantomData::<A>, in into_iter()