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
sourceimpl Clone for SingletonSetStorage
impl Clone for SingletonSetStorage
sourcefn clone(&self) -> SingletonSetStorage
fn clone(&self) -> SingletonSetStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Hash for SingletonSetStorage
impl Hash for SingletonSetStorage
sourceimpl Ord for SingletonSetStorage
impl Ord for SingletonSetStorage
sourcefn cmp(&self, other: &SingletonSetStorage) -> Ordering
fn cmp(&self, other: &SingletonSetStorage) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SingletonSetStorage> for SingletonSetStorage
impl PartialEq<SingletonSetStorage> for SingletonSetStorage
sourcefn eq(&self, other: &SingletonSetStorage) -> bool
fn eq(&self, other: &SingletonSetStorage) -> bool
sourceimpl PartialOrd<SingletonSetStorage> for SingletonSetStorage
impl PartialOrd<SingletonSetStorage> for SingletonSetStorage
sourcefn partial_cmp(&self, other: &SingletonSetStorage) -> Option<Ordering>
fn partial_cmp(&self, other: &SingletonSetStorage) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl<T> SetStorage<T> for SingletonSetStoragewhere
T: Default,
impl<T> SetStorage<T> for SingletonSetStoragewhere
T: Default,
sourcefn insert(&mut self, _: T) -> bool
fn insert(&mut self, _: T) -> bool
This is the storage abstraction for
Set::insert
.sourcefn contains(&self, _: T) -> bool
fn contains(&self, _: T) -> bool
This is the storage abstraction for
Set::contains
.sourcefn remove(&mut self, _: T) -> bool
fn remove(&mut self, _: T) -> bool
This is the storage abstraction for
Set::remove
.sourcefn 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
.sourcefn clear(&mut self)
fn clear(&mut self)
This is the storage abstraction for
Set::clear
.sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more