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 for SingletonSetStorage
impl PartialEq for SingletonSetStorage
Source§impl PartialOrd for SingletonSetStorage
impl PartialOrd for SingletonSetStorage
Source§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)
fn retain<F>(&mut self, func: F)
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 StructuralPartialEq for SingletonSetStorage
Auto Trait Implementations§
impl Freeze for SingletonSetStorage
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