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> CollectionMut for ArraySet<T, N>
impl<T, const N: usize> CollectionMut for ArraySet<T, N>
source§type ItemMut<'a> = &'a mut T
where
Self: 'a
type ItemMut<'a> = &'a mut T where Self: 'a
Type of mutable references to items of the collection.
source§fn upcast_item_mut<'short, 'long: 'short>(
r: Self::ItemMut<'long>,
) -> Self::ItemMut<'short>where
Self: 'long,
fn upcast_item_mut<'short, 'long: 'short>(
r: Self::ItemMut<'long>,
) -> Self::ItemMut<'short>where
Self: 'long,
Changes an item mutable reference into a shorter lived mutable reference. Read more
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: PartialOrd, const N: usize> PartialOrd for ArraySet<T, N>
impl<T: PartialOrd, const N: usize> PartialOrd for ArraySet<T, N>
impl<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more