pub struct SliceMap<K, V>where
K: TypedIndex,{ /* private fields */ }
Expand description
This is a dynamically-sized slice that can only be indexed by the correct index type.
Implementations§
Source§impl<K, V> SliceMap<K, V>where
K: TypedIndex,
impl<K, V> SliceMap<K, V>where
K: TypedIndex,
Sourcepub fn get_mut(&mut self, index: K) -> Option<&mut V>
pub fn get_mut(&mut self, index: K) -> Option<&mut V>
Gets a mutable reference to the value at the given index.
Sourcepub fn iter_mut(&mut self) -> IterMut<'_, K, V> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, K, V> ⓘ
Returns a mutable iterator for this slice map.
Sourcepub fn as_mut_ptr(&mut self) -> *mut V
pub fn as_mut_ptr(&mut self) -> *mut V
Gets a mutable pointer to the SliceMap
.