Struct radix_trie::SubTrie[][src]

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

Immutable view of a sub-tree a larger trie.

Methods

impl<'a, K, V> SubTrie<'a, K, V> where
    K: TrieKey
[src]

Look up the value for the given key, which should be an extension of this subtrie's key.

The key may be any borrowed form of the trie's key type, but TrieKey on the borrowed form must match those for the key type

Trait Implementations

impl<'a: 'b, 'b, K: 'a, V: 'a> TrieCommon<'a, K, V> for &'b SubTrie<'a, K, V> where
    K: TrieKey
[src]

Number of key/value pairs stored in this trie.

Important traits for Children<'a, K, V>

Return an iterator over the child subtries of this node.

Get the key stored at this node, if any.

Get the value stored at this node, if any.

Determine if the Trie contains 0 key-value pairs.

Determine if the trie is a leaf node (has no children).

Important traits for Iter<'a, K, V>

Return an iterator over the keys and values of the Trie.

Important traits for Keys<'a, K, V>

Return an iterator over the keys of the Trie.

Important traits for Values<'a, K, V>

Return an iterator over the values of the Trie.

Get the prefix of this node.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, K, V> Send for SubTrie<'a, K, V> where
    K: Sync,
    V: Sync

impl<'a, K, V> Sync for SubTrie<'a, K, V> where
    K: Sync,
    V: Sync