Struct polymap::typemap::OccupiedEntry
[−]
[src]
pub struct OccupiedEntry<'a, V: Any> { /* fields omitted */ }
A view into an occupied entry in a TypeMap
.
Methods
impl<'a, V: Any> OccupiedEntry<'a, V>
[src]
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.