Struct lattices::collections::ArraySet
source · #[repr(transparent)]pub struct ArraySet<T, const N: usize>(pub [T; N]);
Expand description
An array wrapper representing a fixed-size set (modulo duplicate items).
Tuple Fields§
§0: [T; N]
Trait Implementations§
source§impl<T, const N: usize> IntoIterator for ArraySet<T, N>
impl<T, const N: usize> IntoIterator for ArraySet<T, N>
source§impl<T: Ord, const N: usize> Ord for ArraySet<T, N>
impl<T: Ord, const N: usize> Ord for ArraySet<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: PartialEq, const N: usize> PartialEq for ArraySet<T, N>
impl<T: PartialEq, const N: usize> PartialEq for ArraySet<T, N>
source§impl<T: PartialOrd, const N: usize> PartialOrd for ArraySet<T, N>
impl<T: PartialOrd, const N: usize> PartialOrd for ArraySet<T, N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy, const N: usize> Copy for ArraySet<T, N>
impl<T: Eq, const N: usize> Eq for ArraySet<T, N>
impl<T, const N: usize> StructuralPartialEq for ArraySet<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ArraySet<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ArraySet<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ArraySet<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArraySet<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArraySet<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for ArraySet<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