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

pub trait VacantEntry<'a> {
    type Key: 'a;
    type Value: 'a;
    fn insert(self, value: Self::Value) -> &'a mut Self::Value;
}

A vacant map entry.

'a is the lifetime of the map.

Associated Types

type Key: 'a

The type of the map's keys.

type Value: 'a

The type of the map's values.

Required Methods

fn insert(self, value: Self::Value) -> &'a mut Self::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