pub struct OccupiedEntry<'a, K, V, const N: usize> { /* private fields */ }
Expand description
An occupied entry which can be manipulated
Implementations§
Source§impl<'a, K, V, const N: usize> OccupiedEntry<'a, K, V, N>where
K: Eq + Hash,
impl<'a, K, V, const N: usize> OccupiedEntry<'a, K, V, N>where
K: Eq + Hash,
Sourcepub fn remove_entry(self) -> (K, V)
pub fn remove_entry(self) -> (K, V)
Removes this entry from the map and yields its corresponding key and value
Sourcepub fn get_mut(&mut self) -> &mut V
pub fn get_mut(&mut self) -> &mut V
Gets a mutable reference to the value associated with this entry
Sourcepub fn into_mut(self) -> &'a mut V
pub fn into_mut(self) -> &'a mut V
Consumes this entry and yields a reference to the underlying value