Struct fixed_map::storage::OptionStorage
source · [−]pub struct OptionStorage<K, V>where
K: Key<K, V>,{ /* private fields */ }Expand description
Storage for Option<T>s.
Trait Implementations
sourceimpl<K, V> Default for OptionStorage<K, V>where
K: Key<K, V>,
impl<K, V> Default for OptionStorage<K, V>where
K: Key<K, V>,
sourceimpl<K, V> PartialEq<OptionStorage<K, V>> for OptionStorage<K, V>where
K: Key<K, V>,
K::Storage: PartialEq,
V: PartialEq,
impl<K, V> PartialEq<OptionStorage<K, V>> for OptionStorage<K, V>where
K: Key<K, V>,
K::Storage: PartialEq,
V: PartialEq,
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>,
type Iter<'this>
where
Self: 'this = Iter<'this, K, V>
type Iter<'this>
where
Self: '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 = IterMut<'this, K, V>
type IterMut<'this>
where
Self: '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: 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.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 OptionStorage<K, V>where
K: Key<K, V>,
K::Storage: Eq,
V: Eq,
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