Struct OccupiedEntry
pub struct OccupiedEntry<'a, K, V> { /* private fields */ }
An occupied Entry. It is part of the Entry enum.
Implementations
impl<'a, K: Ord, V> OccupiedEntry<'a, K, V>
fn key(&self) -> &KGets a reference to the key in the entry.
fn get(&self) -> &VGets a reference to the value in the entry.
fn get_mut(&mut self) -> &mut VGets a mutable reference to the value in the entry.
fn into_mut(self) -> &'a mut VConverts the entry into a mutable reference to its value.
fn insert(&mut self, value: V) -> VSets the value of the entry with the
OccupiedEntry's key, and returns the entry's old value.fn remove(self) -> VTakes the value of the entry out of the map, and returns it.