Struct linear_map::OccupiedEntry [] [src]

pub struct OccupiedEntry<'a, K: 'a, V: 'a> { /* fields omitted */ }

A view into a single occupied location in a LinearMap.

See LinearMap::entry for details.

Methods

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

Returns a reference to the entry's value.

Returns a mutable reference to the entry's value.

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

Replaces the entry's value with the given one and returns the previous value.

Removes the entry from the map and returns its value.