Struct fixed_map::storage::MapStorage [−][src]
pub struct MapStorage<K, V> { /* fields omitted */ }Expand description
Storage for static types that must be stored in a map.
Trait Implementations
impl<K, V> Clone for MapStorage<K, V> where
K: Clone,
V: Clone, [src]
impl<K, V> Clone for MapStorage<K, V> where
K: Clone,
V: Clone, [src]impl<K, V> Default for MapStorage<K, V> where
K: Eq + Hash, [src]
impl<K, V> Default for MapStorage<K, V> where
K: Eq + Hash, [src]impl<K, V> PartialEq<MapStorage<K, V>> for MapStorage<K, V> where
K: Eq + Hash,
V: PartialEq, [src]
impl<K, V> PartialEq<MapStorage<K, V>> for MapStorage<K, V> where
K: Eq + Hash,
V: PartialEq, [src]impl<K, V> Storage<K, V> for MapStorage<K, V> where
K: Copy + Eq + Hash, [src]
impl<K, V> Storage<K, V> for MapStorage<K, V> where
K: Copy + Eq + Hash, [src]type Iter = Iter<K, V>
type Iter = Iter<K, V>Immutable iterator over storage. Uses raw pointers (unsafe) since we don’t have GATs. Read more
type IterMut = IterMut<K, V>
type IterMut = IterMut<K, V>Mutable iterator over storage. Uses raw pointers (unsafe) since we don’t have GATs. Read more
fn insert(&mut self, key: K, value: V) -> Option<V>[src]
fn insert(&mut self, key: K, value: V) -> Option<V>[src]This is the storage abstraction for Map::insert.
fn get_mut(&mut self, key: K) -> Option<&mut V>[src]
fn get_mut(&mut self, key: K) -> Option<&mut V>[src]This is the storage abstraction for Map::get_mut.
fn remove(&mut self, key: K) -> Option<V>[src]
fn remove(&mut self, key: K) -> Option<V>[src]This is the storage abstraction for Map::remove.
fn clear(&mut self)[src]
fn clear(&mut self)[src]This is the storage abstraction for Map::clear.
fn iter_mut(&mut self) -> Self::IterMut[src]
fn iter_mut(&mut self) -> Self::IterMut[src]This is the storage abstraction for Map::iter_mut.
impl<K, V> Eq for MapStorage<K, V> where
K: Eq + Hash,
V: Eq, [src]
K: Eq + Hash,
V: Eq,
Auto Trait Implementations
impl<K, V> RefUnwindSafe for MapStorage<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MapStorage<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for MapStorage<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for MapStorage<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for MapStorage<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more