pub struct OccupiedEntry<'s, K: BitString + Clone + 's, V: 's> { /* private fields */ }Implementations§
Source§impl<'s, K: BitString + Clone, V> OccupiedEntry<'s, K, V>
impl<'s, K: BitString + Clone, V> OccupiedEntry<'s, K, V>
Sourcepub fn get_mut(&mut self) -> &mut V
pub fn get_mut(&mut self) -> &mut V
Gets a mutable reference to the value in the entry.
If you need a reference to the OccupiedEntry that may outlive the destruction of the Entry value, see into_mut.
Sourcepub fn into_mut(self) -> &'s mut V
pub fn into_mut(self) -> &'s mut V
Converts the entry into a mutable reference to its value.
If you need multiple references to the OccupiedEntry, see get_mut.
Sourcepub fn insert(&mut self, value: V) -> V
pub fn insert(&mut self, value: V) -> V
Sets the value of the entry with the OccupiedEntry’s key,
and returns the entry’s old value.