[−][src]Struct radix_trie::SubTrieMut
Mutable view of a sub-tree of a larger trie.
Methods
impl<'a, K, V> SubTrieMut<'a, K, V> where
K: TrieKey,
[src]
K: TrieKey,
pub fn value_mut(&mut self) -> Option<&mut V>
[src]
Mutable reference to the node's value.
pub fn get<Q: ?Sized>(&self, key: &Q) -> SubTrieResult<&V> where
K: Borrow<Q>,
Q: TrieKey,
[src]
K: Borrow<Q>,
Q: TrieKey,
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
pub fn insert(&mut self, key: K, value: V) -> SubTrieResult<V>
[src]
Insert a value in this subtrie. The key should be an extension of this subtrie's key.
pub fn remove<Q: ?Sized>(&mut self, key: &Q) -> SubTrieResult<V> where
K: Borrow<Q>,
Q: TrieKey,
[src]
K: Borrow<Q>,
Q: TrieKey,
Remove a value from this subtrie. The key 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: 'a, V: 'a> TrieCommon<'a, K, V> for SubTrieMut<'a, K, V> where
K: TrieKey,
[src]
K: TrieKey,
fn len(self) -> usize
[src]
Computes from scratch.
ⓘImportant traits for Children<'a, K, V>fn children(self) -> Children<'a, K, V>
[src]
ⓘImportant traits for Children<'a, K, V>
fn key(self) -> Option<&'a K>
[src]
fn value(self) -> Option<&'a V>
[src]
fn is_empty(self) -> bool
[src]
fn is_leaf(self) -> bool
[src]
ⓘImportant traits for Iter<'a, K, V>fn iter(self) -> Iter<'a, K, V>
[src]
ⓘImportant traits for Iter<'a, K, V>
ⓘImportant traits for Keys<'a, K, V>fn keys(self) -> Keys<'a, K, V>
[src]
ⓘImportant traits for Keys<'a, K, V>
ⓘImportant traits for Values<'a, K, V>fn values(self) -> Values<'a, K, V>
[src]
ⓘImportant traits for Values<'a, K, V>
fn prefix(self) -> &'a NibbleVec
[src]
impl<'a: 'b, 'b, K: 'a, V: 'a> TrieCommon<'b, K, V> for &'b SubTrieMut<'a, K, V> where
K: TrieKey,
[src]
K: TrieKey,
fn len(self) -> usize
[src]
ⓘImportant traits for Children<'a, K, V>fn children(self) -> Children<'b, K, V>
[src]
ⓘImportant traits for Children<'a, K, V>
fn key(self) -> Option<&'a K>
[src]
fn value(self) -> Option<&'a V>
[src]
fn is_empty(self) -> bool
[src]
fn is_leaf(self) -> bool
[src]
ⓘImportant traits for Iter<'a, K, V>fn iter(self) -> Iter<'a, K, V>
[src]
ⓘImportant traits for Iter<'a, K, V>
ⓘImportant traits for Keys<'a, K, V>fn keys(self) -> Keys<'a, K, V>
[src]
ⓘImportant traits for Keys<'a, K, V>
ⓘImportant traits for Values<'a, K, V>fn values(self) -> Values<'a, K, V>
[src]
ⓘImportant traits for Values<'a, K, V>
fn prefix(self) -> &'a NibbleVec
[src]
impl<'a, K: Debug + 'a, V: Debug + 'a> Debug for SubTrieMut<'a, K, V>
[src]
Auto Trait Implementations
impl<'a, K, V> Send for SubTrieMut<'a, K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<'a, K, V> Sync for SubTrieMut<'a, K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for SubTrieMut<'a, K, V>
impl<'a, K, V> !UnwindSafe for SubTrieMut<'a, K, V>
impl<'a, K, V> RefUnwindSafe for SubTrieMut<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,