pub struct Capped<T, const N: usize> { /* private fields */ }Expand description
A non-empty ordered collection together with its constructor-derived capping posture.
Implementations§
Source§impl<T, const N: usize> Capped<T, N>
impl<T, const N: usize> Capped<T, N>
Trait Implementations§
impl<T: Eq, const N: usize> Eq for Capped<T, N>
impl<T: PartialEq, const N: usize> StructuralPartialEq for Capped<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Capped<T, N>
impl<T, const N: usize> RefUnwindSafe for Capped<T, N>where
NonEmpty<T, N>: RefUnwindSafe,
impl<T, const N: usize> Send for Capped<T, N>
impl<T, const N: usize> Sync for Capped<T, N>
impl<T, const N: usize> Unpin for Capped<T, N>
impl<T, const N: usize> UnsafeUnpin for Capped<T, N>where
NonEmpty<T, N>: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for Capped<T, N>where
NonEmpty<T, N>: 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