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

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

A map that supports efficient in-place modification.

'a is the lifetime of the map.

Associated Types

type OccupiedEntry: OccupiedEntry<'a, Map=Self>

The type of the map's occupied entries.

type VacantEntry: VacantEntry<'a, Map=Self>

The type of the map's vacant entries.

Required Methods

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

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

Implementors