Struct polymap::polymap::OccupiedEntry
[−]
[src]
pub struct OccupiedEntry<'a, K: 'a, V: Any> { /* fields omitted */ }
A view into an occupied entry in a PolyMap
.
Methods
impl<'a, K, V: Any> OccupiedEntry<'a, K, V>
[src]
fn key(&self) -> &K
Returns a reference to the entry's key.
fn remove_entry(self) -> (K, V)
Removes the entry and returns its key value pair.
fn get(&self) -> &V
Returns a reference to the entry value.
fn get_mut(&mut self) -> &mut V
Returns a mutable reference to the entry value.
fn into_mut(self) -> &'a mut V
Consumes the entry and returns a mutable reference tied to the lifetime of the parent container.
fn insert(&mut self, value: V) -> V
Inserts a value into the entry and returns the old value.
fn remove(self) -> V
Removes the entry and returns the value.