Struct radix_trie::SubTrie
source · pub struct SubTrie<'a, K: 'a, V: 'a> { /* private fields */ }
Expand description
Immutable view of a sub-tree a larger trie.
Implementations§
source§impl<'a, K, V> SubTrie<'a, K, V>where
K: TrieKey,
impl<'a, K, V> SubTrie<'a, K, V>where
K: TrieKey,
sourcepub fn get<Q>(&self, key: &Q) -> SubTrieResult<&V>
pub fn get<Q>(&self, key: &Q) -> SubTrieResult<&V>
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§
Auto Trait Implementations§
impl<'a, K, V> Freeze for SubTrie<'a, K, V>
impl<'a, K, V> RefUnwindSafe for SubTrie<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for SubTrie<'a, K, V>
impl<'a, K, V> Sync for SubTrie<'a, K, V>
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,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more