Struct linear_map::VacantEntry [] [src]

pub struct VacantEntry<'a, K: 'a, V: 'a> {
    // some fields omitted
}

A view into a single vacant location in a LinearMap.

See LinearMap::entry for details.

Methods

impl<'a, K, V> VacantEntry<'a, K, V>
[src]

fn insert(self, value: V) -> &'a mut V

Inserts the entry into the map with the given value.

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