Struct fixed_map::storage::OptionStorage
source · pub struct OptionStorage<K: 'static, V: 'static>where
K: Key<K, V>,{ /* private fields */ }Expand description
Storage for Option<T>s.
Trait Implementations
sourceimpl<K: 'static, V: 'static> Clone for OptionStorage<K, V>where
K: Key<K, V>,
K::Storage: Clone,
V: Clone,
impl<K: 'static, V: 'static> Clone for OptionStorage<K, V>where
K: Key<K, V>,
K::Storage: Clone,
V: Clone,
sourceimpl<K: 'static, V: 'static> Default for OptionStorage<K, V>where
K: Key<K, V>,
impl<K: 'static, V: 'static> Default for OptionStorage<K, V>where
K: Key<K, V>,
sourceimpl<K, V> Storage<Option<K>, V> for OptionStorage<K, V>where
K: Key<K, V>,
impl<K, V> Storage<Option<K>, V> for OptionStorage<K, V>where
K: Key<K, V>,
sourcefn insert(&mut self, key: Option<K>, value: V) -> Option<V>
fn insert(&mut self, key: Option<K>, value: V) -> Option<V>
This is the storage abstraction for
Map::insert.sourcefn get_mut(&mut self, key: Option<K>) -> Option<&mut V>
fn get_mut(&mut self, key: Option<K>) -> Option<&mut V>
This is the storage abstraction for
Map::get_mut.sourcefn remove(&mut self, key: Option<K>) -> Option<V>
fn remove(&mut self, key: Option<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.Auto Trait Implementations
impl<K, V> RefUnwindSafe for OptionStorage<K, V>where
V: RefUnwindSafe,
<K as Key<K, V>>::Storage: RefUnwindSafe,
impl<K, V> Send for OptionStorage<K, V>where
V: Send,
<K as Key<K, V>>::Storage: Send,
impl<K, V> Sync for OptionStorage<K, V>where
V: Sync,
<K as Key<K, V>>::Storage: Sync,
impl<K, V> Unpin for OptionStorage<K, V>where
V: Unpin,
<K as Key<K, V>>::Storage: Unpin,
impl<K, V> UnwindSafe for OptionStorage<K, V>where
V: UnwindSafe,
<K as Key<K, V>>::Storage: 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