Enum trie::map::Entry [] [src]

pub enum Entry<'a, T: 'a> {
    Occupied(OccupiedEntry<'a, T>),
    Vacant(VacantEntry<'a, T>),
}

A view into a single entry in a map, which may be vacant or occupied.

Variants

An occupied entry.

A vacant entry.

Methods

impl<'a, T> Entry<'a, T>
[src]

[src]

Ensures a value is in the entry by inserting the default if empty, and returns a mutable reference to the value in the entry.

[src]

Ensures a value is in the entry by inserting the result of the default function if empty, and returns a mutable reference to the value in the entry.