Struct fixed_map::MapStorage
source · pub struct MapStorage<K: 'static, V: 'static> { /* private fields */ }Expand description
Storage static types that must be stored in a map.
Trait Implementations
sourceimpl<K: 'static, V: 'static> Default for MapStorage<K, V>where
K: Eq + Hash,
impl<K: 'static, V: 'static> Default for MapStorage<K, V>where
K: Eq + Hash,
sourceimpl<K, V> Storage<K, V> for MapStorage<K, V>where
K: Copy + Eq + Hash,
impl<K, V> Storage<K, V> for MapStorage<K, V>where
K: Copy + Eq + Hash,
sourcefn insert(&mut self, key: K, value: V) -> Option<V>
fn insert(&mut self, key: K, value: V) -> Option<V>
This is the storage abstraction for
Map::insert.sourcefn get_mut(&mut self, key: K) -> Option<&mut V>
fn get_mut(&mut self, key: K) -> Option<&mut V>
This is the storage abstraction for
Map::get_mut.sourcefn remove(&mut self, key: K) -> Option<V>
fn remove(&mut self, key: K) -> Option<V>
This is the storage abstraction for
Map::remove.sourcefn clear(&mut self)
fn clear(&mut self)
This is the storage abstraction for
Map::clear.sourcefn iter<'a, F>(&'a self, f: F)where
F: FnMut((K, &'a V)),
fn iter<'a, F>(&'a self, f: F)where
F: FnMut((K, &'a V)),
This is the storage abstraction for
Map::iter.sourcefn iter_mut<'a, F>(&'a mut self, f: F)where
F: FnMut((K, &'a mut V)),
fn iter_mut<'a, F>(&'a mut self, f: F)where
F: FnMut((K, &'a mut V)),
This is the storage abstraction for
Map::iter_mut.Auto Trait Implementations
impl<K, V> RefUnwindSafe for MapStorage<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MapStorage<K, V>where
K: Send,
V: Send,
impl<K, V> Sync for MapStorage<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for MapStorage<K, V>
impl<K, V> UnwindSafe for MapStorage<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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