pub struct StateMap { /* private fields */ }Implementations§
Source§impl StateMap
impl StateMap
pub fn contains<K>(&self) -> boolwhere
K: StateKey,
pub fn get<K>(&self) -> Option<&<K as StateKey>::Value>where
K: StateKey,
pub fn get_mut<K>(&mut self) -> Option<&mut <K as StateKey>::Value>where
K: StateKey,
pub fn insert<K>(&mut self, value: <K as StateKey>::Value)where
K: StateKey,
pub fn remove<K>(&mut self) -> Option<<K as StateKey>::Value>where
K: StateKey,
pub fn get_or_insert_default<K>(&mut self) -> &mut <K as StateKey>::Valuewhere
K: StateKey,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateMap
impl !RefUnwindSafe for StateMap
impl Send for StateMap
impl Sync for StateMap
impl Unpin for StateMap
impl UnsafeUnpin for StateMap
impl !UnwindSafe for StateMap
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