Struct SubTrie

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

Immutable view of a sub-tree a larger trie.

Implementations

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

fn get<Q>(&self, key: &Q) -> SubTrieResult<&V>
where
    K: Borrow<Q>,
    Q: TrieKey + ?Sized,

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, K: Debug + 'a, V: Debug + 'a> Debug for SubTrie<'a, K, V>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a, K, V> Freeze for SubTrie<'a, K, V> where &'a TrieNode<K, V>: Freeze,

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

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

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

impl<'a, K, V> Unpin for SubTrie<'a, K, V> where &'a TrieNode<K, V>: Unpin,

impl<'a, K, V> UnsafeUnpin for SubTrie<'a, K, V> where &'a TrieNode<K, V>: UnsafeUnpin,

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

Blanket Implementations

impl<T> Any for SubTrie<'a, K, V> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SubTrie<'a, K, V> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SubTrie<'a, K, V> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for SubTrie<'a, K, V>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for SubTrie<'a, K, V> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SubTrie<'a, K, V> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SubTrie<'a, K, V> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>