Struct linear_map::OccupiedEntry
[−]
[src]
pub struct OccupiedEntry<'a, K: 'a, V: 'a> { /* fields omitted */ }
A view into a single occupied location in a LinearMap
.
See LinearMap::entry
for details.
Methods
impl<'a, K, V> OccupiedEntry<'a, K, V>
[src]
fn get(&self) -> &V
Returns a reference to the entry's value.
fn get_mut(&mut self) -> &mut V
Returns a mutable reference to the entry's value.
fn into_mut(self) -> &'a mut V
Returns a mutable reference to the entry's value with the same lifetime as the map.
fn insert(&mut self, value: V) -> V
Replaces the entry's value with the given one and returns the previous value.
fn remove(self) -> V
Removes the entry from the map and returns its value.