Struct qp_trie::OccupiedEntry [] [src]

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

An occupied entry in the trie.

Methods

impl<'a, K: 'a + ToOwned + 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.