Trait eclectic::map::EntryMap [] [src]

pub trait EntryMap<'a>: Base where Self::Key: 'a, Self::Value: 'a {
    type OccupiedEntry: OccupiedEntry<'a, Key=Self::Key, Value=Self::Value>;
    type VacantEntry: VacantEntry<'a, Key=Self::Key, Value=Self::Value>;
    fn entry(&'a mut self, key: Self::Key) -> Entry<Self::OccupiedEntry, Self::VacantEntry>;
}

A map that supports efficient in-place manipulation.

'a is the lifetime of the map.

Associated Types

type OccupiedEntry: OccupiedEntry<'a, Key=Self::Key, Value=Self::Value>

The type of the map's occupied entries.

type VacantEntry: VacantEntry<'a, Key=Self::Key, Value=Self::Value>

The type of the map's vacant entries.

Required Methods

fn entry(&'a mut self, key: Self::Key) -> Entry<Self::OccupiedEntry, Self::VacantEntry>

Returns the entry in the map corresponding to the given key.

Implementors