#[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> Collection for ArraySet<T, N>
impl<T, const N: usize> Collection for ArraySet<T, N>
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
ArraySet<T, N>: 'a
type ItemMut<'a> = &'a mut T where ArraySet<T, N>: 'a
Type of mutable references to items of the collection.
Source§fn upcast_item_mut<'short, 'long>(
r: <ArraySet<T, N> as CollectionMut>::ItemMut<'long>,
) -> <ArraySet<T, N> as CollectionMut>::ItemMut<'short>where
'long: 'short,
ArraySet<T, N>: 'long,
fn upcast_item_mut<'short, 'long>(
r: <ArraySet<T, N> as CollectionMut>::ItemMut<'long>,
) -> <ArraySet<T, N> as CollectionMut>::ItemMut<'short>where
'long: 'short,
ArraySet<T, N>: 'long,
Changes an item mutable reference into a shorter lived mutable reference. Read more
Source§impl<T, const N: usize> CollectionRef for ArraySet<T, N>
impl<T, const N: usize> CollectionRef for ArraySet<T, N>
Source§type ItemRef<'a> = &'a T
where
ArraySet<T, N>: 'a
type ItemRef<'a> = &'a T where ArraySet<T, N>: 'a
Type of references to items of the collection.
Source§fn upcast_item_ref<'short, 'long>(
r: <ArraySet<T, N> as CollectionRef>::ItemRef<'long>,
) -> <ArraySet<T, N> as CollectionRef>::ItemRef<'short>where
'long: 'short,
ArraySet<T, N>: 'long,
fn upcast_item_ref<'short, 'long>(
r: <ArraySet<T, N> as CollectionRef>::ItemRef<'long>,
) -> <ArraySet<T, N> as CollectionRef>::ItemRef<'short>where
'long: 'short,
ArraySet<T, N>: 'long,
Changes an item reference into a shorter lived 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, const N: usize> Ord for ArraySet<T, N>where
T: Ord,
impl<T, const N: usize> Ord for ArraySet<T, N>where
T: Ord,
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, const N: usize> PartialOrd for ArraySet<T, N>where
T: PartialOrd,
impl<T, const N: usize> PartialOrd for ArraySet<T, N>where
T: PartialOrd,
Source§impl<T, const N: usize> SimpleCollectionRef for ArraySet<T, N>
impl<T, const N: usize> SimpleCollectionRef for ArraySet<T, N>
fn into_ref<'r>(
r: <ArraySet<T, N> as CollectionRef>::ItemRef<'r>,
) -> &'r <ArraySet<T, N> as Collection>::Itemwhere
ArraySet<T, N>: 'r,
impl<T, const N: usize> Copy for ArraySet<T, N>where
T: Copy,
impl<T, const N: usize> Eq for ArraySet<T, N>where
T: Eq,
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more