Struct heapless::OccupiedEntry
source · 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