Trait eclectic::map::OccupiedEntry
[−]
[src]
pub trait OccupiedEntry { type Key; type Value; type MutValue; fn get(&self) -> &Self::Value; fn get_mut(&mut self) -> &mut Self::Value; fn into_mut(self: Box<Self>) -> Self::MutValue; fn remove(self: Box<Self>) -> Self::Value; }
An occupied map entry.
Associated Types
type Key
The type of the entry's key.
type Value
The type of the entry's value.
type MutValue
The type of the mutable reference to the entry's value with the same lifetime as the map.
Required Methods
fn get(&self) -> &Self::Value
Returns a reference to the entry's value.
fn get_mut(&mut self) -> &mut Self::Value
Returns a mutable reference to the entry's value.
fn into_mut(self: Box<Self>) -> Self::MutValue
Returns a mutable reference to the entry's value with the same lifetime as the map.
fn remove(self: Box<Self>) -> Self::Value
Removes the entry from the map and returns its value.
Implementors
impl<'a, K: 'a + Ord, V: 'a> OccupiedEntry for OccupiedEntry<'a, K, V>
impl<'a, K: 'a + Eq + Hash, V: 'a> OccupiedEntry for OccupiedEntry<'a, K, V>