Struct qp_trie::OccupiedEntry[][src]

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

An occupied entry in the trie.

Methods

impl<'a, K: 'a + Borrow<[u8]>, V: 'a> OccupiedEntry<'a, K, V>
[src]

Get a reference to the key of the entry.

Remove the entry from the trie, returning the stored key and value.

Get a reference to the value in the occupied entry.

Get a mutable reference to the value in the occupied entry.

Consume the entry to produce a mutable reference to the associated value.

Replace the associated value, returning the old one.

Remove the entry altogether, returning the previously stored value.

Trait Implementations

impl<'a, K: Debug + 'a, V: Debug + 'a> Debug for OccupiedEntry<'a, K, V>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, K, V> !Send for OccupiedEntry<'a, K, V>

impl<'a, K, V> !Sync for OccupiedEntry<'a, K, V>