pub(crate) struct ArrayVec<T, const N: usize> {
elements: [Option<T>; N],
length: usize,
}Expand description
Array-backed append-only vector type.
Fields§
§elements: [Option<T>; N]Elements of the set.
length: usizeLast populated element.
Implementations§
Trait Implementations§
Source§impl<T: Ord, const N: usize> Ord for ArrayVec<T, N>
impl<T: Ord, const N: usize> Ord for ArrayVec<T, N>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, const N: usize> PartialOrd for ArrayVec<T, N>
impl<T: PartialOrd, const N: usize> PartialOrd for ArrayVec<T, N>
impl<T: Eq, const N: usize> Eq for ArrayVec<T, N>
impl<T, const N: usize> StructuralPartialEq for ArrayVec<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ArrayVec<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ArrayVec<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ArrayVec<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArrayVec<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArrayVec<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for ArrayVec<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more