Struct fixed_map::set::storage::SingletonSetStorage
source · #[repr(transparent)]pub struct SingletonSetStorage { /* private fields */ }
Expand description
SetStorage
types that can only inhabit a single value (like ()
).
Trait Implementations§
source§impl Clone for SingletonSetStorage
impl Clone for SingletonSetStorage
source§fn clone(&self) -> SingletonSetStorage
fn clone(&self) -> SingletonSetStorage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for SingletonSetStorage
impl Hash for SingletonSetStorage
source§impl Ord for SingletonSetStorage
impl Ord for SingletonSetStorage
source§fn cmp(&self, other: &SingletonSetStorage) -> Ordering
fn cmp(&self, other: &SingletonSetStorage) -> Ordering
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 PartialEq<SingletonSetStorage> for SingletonSetStorage
impl PartialEq<SingletonSetStorage> for SingletonSetStorage
source§fn eq(&self, other: &SingletonSetStorage) -> bool
fn eq(&self, other: &SingletonSetStorage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SingletonSetStorage> for SingletonSetStorage
impl PartialOrd<SingletonSetStorage> for SingletonSetStorage
source§fn partial_cmp(&self, other: &SingletonSetStorage) -> Option<Ordering>
fn partial_cmp(&self, other: &SingletonSetStorage) -> Option<Ordering>
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 moresource§impl<T> SetStorage<T> for SingletonSetStoragewhere
T: Default,
impl<T> SetStorage<T> for SingletonSetStoragewhere T: Default,
source§fn insert(&mut self, _: T) -> bool
fn insert(&mut self, _: T) -> bool
This is the storage abstraction for
Set::insert
.source§fn contains(&self, _: T) -> bool
fn contains(&self, _: T) -> bool
This is the storage abstraction for
Set::contains
.source§fn remove(&mut self, _: T) -> bool
fn remove(&mut self, _: T) -> bool
This is the storage abstraction for
Set::remove
.source§fn retain<F>(&mut self, func: F)where
F: FnMut(T) -> bool,
fn retain<F>(&mut self, func: F)where F: FnMut(T) -> bool,
This is the storage abstraction for
Set::retain
.source§fn clear(&mut self)
fn clear(&mut self)
This is the storage abstraction for
Set::clear
.source§fn into_iter(self) -> Self::IntoIter
fn into_iter(self) -> Self::IntoIter
This is the storage abstraction for
Set::into_iter
.impl Copy for SingletonSetStorage
impl Eq for SingletonSetStorage
impl StructuralEq for SingletonSetStorage
impl StructuralPartialEq for SingletonSetStorage
Auto Trait Implementations§
impl RefUnwindSafe for SingletonSetStorage
impl Send for SingletonSetStorage
impl Sync for SingletonSetStorage
impl Unpin for SingletonSetStorage
impl UnwindSafe for SingletonSetStorage
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