pub struct BoxedMap<K, V>where
K: TypedIndex,{ /* private fields */ }
Expand description
Boxed map.
Methods from Deref<Target = SliceMap<K, V>>§
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
.
Trait Implementations§
Source§impl<K, V> DerefMut for BoxedMap<K, V>where
K: TypedIndex,
impl<K, V> DerefMut for BoxedMap<K, V>where
K: TypedIndex,
Auto Trait Implementations§
impl<K, V> Freeze for BoxedMap<K, V>
impl<K, V> RefUnwindSafe for BoxedMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for BoxedMap<K, V>
impl<K, V> Sync for BoxedMap<K, V>
impl<K, V> Unpin for BoxedMap<K, V>where
K: Unpin,
impl<K, V> UnwindSafe for BoxedMap<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more