Trait eclectic::map::VacantEntry [] [src]

pub trait VacantEntry<'a>: Sized {
    type Map: ?Sized + EntryMap<'a, VacantEntry=Self>;
    fn insert(self, value: Self::Map::Value) -> &'a mut Self::Map::Value;
}

A vacant map entry.

'a is the lifetime of the map.

Associated Types

type Map: ?Sized + EntryMap<'a, VacantEntry=Self>

The entry's map type.

Required Methods

fn insert(self, value: Self::Map::Value) -> &'a mut Self::Map::Value

Inserts the entry into the map with the given value and returns a mutable reference to it with the same lifetime as the map.

Implementors