pub struct NonEmpty<T, const N: usize> { /* private fields */ }Expand description
An ordered collection of at least one and at most N items.
The first item is a field, so non-emptiness is the shape of the value rather than a property a road checks.
Implementations§
Trait Implementations§
impl<T: Eq, const N: usize> Eq for NonEmpty<T, N>
Source§impl<'held, T, const N: usize> IntoIterator for &'held NonEmpty<T, N>
impl<'held, T, const N: usize> IntoIterator for &'held NonEmpty<T, N>
impl<T: PartialEq, const N: usize> StructuralPartialEq for NonEmpty<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for NonEmpty<T, N>
impl<T, const N: usize> RefUnwindSafe for NonEmpty<T, N>
impl<T, const N: usize> Send for NonEmpty<T, N>
impl<T, const N: usize> Sync for NonEmpty<T, N>
impl<T, const N: usize> Unpin for NonEmpty<T, N>
impl<T, const N: usize> UnsafeUnpin for NonEmpty<T, N>
impl<T, const N: usize> UnwindSafe for NonEmpty<T, N>
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