Enum qp_trie::Entry[][src]

pub enum Entry<'a, K: 'a, V: 'a> {
    Vacant(VacantEntry<'a, K, V>),
    Occupied(OccupiedEntry<'a, K, V>),
}
Expand description

An entry - occupied or vacant - in the trie, corresponding to some given key.

Variants

Vacant

Tuple Fields of Vacant

0: VacantEntry<'a, K, V>
Occupied

Tuple Fields of Occupied

0: OccupiedEntry<'a, K, V>

Implementations

Get a mutable reference to a value already in the trie, if it exists - otherwise, insert a given default value, and return a mutable reference to its new location in the trie.

Get a mutable reference to a value already in the trie, if it exists - otherwise, call the provided closure to construct a new value, insert it into the trie, and then return a mutable reference to it.

Get a reference to the key associated with this entry.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.