Struct trie::map::OccupiedEntry
[−]
[src]
pub struct OccupiedEntry<'a, T: 'a> { /* fields omitted */ }
A view into an occupied entry in a map.
Methods
impl<'a, T> OccupiedEntry<'a, T>
[src]
fn get(&self) -> &T
[src]
Gets a reference to the value in the entry.
fn get_mut(&mut self) -> &mut T
[src]
Gets a mutable reference to the value in the entry.
fn into_mut(self) -> &'a mut T
[src]
Converts the OccupiedEntry into a mutable reference to the value in the entry, with a lifetime bound to the map itself.
fn insert(&mut self, value: T) -> T
[src]
Sets the value of the entry, and returns the entry's old value.
fn remove(self) -> T
[src]
Takes the value out of the entry, and returns it.