[][src]Struct radix_trie::SubTrie

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]

pub fn get<Q: ?Sized>(&self, key: &Q) -> SubTrieResult<&V> where
    K: Borrow<Q>,
    Q: 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]

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

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

impl<'a, K, V> Unpin for SubTrie<'a, K, V>

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

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]