| H A D | kvec.rs | 3 //! Implementation of [`Vec`]. 94 /// The kernel's [`Vec`] type. 97 /// [`Kmalloc`], [`Vmalloc`] or [`KVmalloc`]), written `Vec<T, A>`. 99 /// For non-zero-sized values, a [`Vec`] will use the given allocator `A` for its allocation. For 102 /// For zero-sized types the [`Vec`]'s pointer must be `dangling_mut::<T>`; no memory is allocated. 104 /// Generally, [`Vec`] consists of a pointer that represents the vector's backing buffer, the 109 /// A [`Vec`] can be deconstructed into and (re-)constructed from its previously named raw parts 112 /// [`Vec`]'s backing buffer gets, if required, automatically increased (re-allocated) when elements 130 pub struct Vec<T, A: Allocator> { 141 /// Type alias for [`Vec`] wit 107 pub struct Vec<T, A: Allocator> { global() struct 118 _pVec global() argument 158 unsafe impl<T, A> Send for Vec<T, A> global() implementation 166 unsafe impl<T, A> Sync for Vec<T, A> global() implementation 173 impl<T, A> Vec<T, A> global() implementation 743 impl<T> Vec<T, KVmalloc> { global() implementation 850 impl<T: Clone, A: Allocator> Vec<T, A> { global() implementation 943 impl<T, A> Drop for Vec<T, A> global() implementation 963 impl<T, A, const N: usize> From<Box<[T; N], A>> for Vec<T, A> global() implementation 981 impl<T, A: Allocator> Default for Vec<T, A> { global() implementation 988 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> { global() implementation 994 impl<T, A> Deref for Vec<T, A> global() implementation 1008 impl<T, A> DerefMut for Vec<T, A> global() implementation 1037 impl<T, A> Borrow<[T]> for Vec<T, A> global() implementation 1063 impl<T, A> BorrowMut<[T]> for Vec<T, A> global() implementation 1072 impl<T: Eq, A> Eq for Vec<T, A> where A: Allocator {} global() implementation 1074 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A> global() implementation 1086 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A> global() implementation 1122 impl<'a, T, A> IntoIterator for &'a Vec<T, A> global() implementation 1134 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> global() implementation 1380 impl<T, A> IntoIterator for Vec<T, A> global() implementation [all...] |