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

The type of the entry's key.

The type of the entry's value.

The type of the mutable reference to the entry's value with the same lifetime as the map.

Required Methods

Returns a reference to the entry's value.

Returns a mutable reference to the entry's value.

Returns a mutable reference to the entry's value with the same lifetime as the map.

Removes the entry from the map and returns its value.

Implementors