Struct fixed_map::storage::MapStorage
source · [−]pub struct MapStorage<K, V> { /* private fields */ }Expand description
Storage for static types that must be stored in a map.
Trait Implementations
sourceimpl<K, V> Clone for MapStorage<K, V>where
K: Clone,
V: Clone,
impl<K, V> Clone for MapStorage<K, V>where
K: Clone,
V: Clone,
sourceimpl<K, V> Default for MapStorage<K, V>where
K: Eq + Hash,
impl<K, V> Default for MapStorage<K, V>where
K: Eq + Hash,
sourceimpl<K, V> PartialEq<MapStorage<K, V>> for MapStorage<K, V>where
K: Eq + Hash,
V: PartialEq,
impl<K, V> PartialEq<MapStorage<K, V>> for MapStorage<K, V>where
K: Eq + Hash,
V: PartialEq,
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,
type Iter<'this>
where
Self: 'this,
V: 'this = Iter<'this, K, V>
type Iter<'this>
where
Self: 'this,
V: 'this = Iter<'this, K, V>
Immutable iterator over storage.
Uses raw pointers (unsafe) since we don’t have GATs. Read more
type IterMut<'this>
where
Self: 'this,
V: 'this = IterMut<'this, K, V>
type IterMut<'this>
where
Self: 'this,
V: 'this = IterMut<'this, K, V>
Mutable iterator over storage.
Uses raw pointers (unsafe) since we don’t have GATs. Read more
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_mut(&mut self) -> Self::IterMut<'_>
fn iter_mut(&mut self) -> Self::IterMut<'_>
This is the storage abstraction for
Map::iter_mut.impl<K, V> Eq for MapStorage<K, V>where
K: Eq + Hash,
V: Eq,
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>where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for MapStorage<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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