pub trait TrieCommon<'a, K, V: 'a>: ContainsTrieNode<'a, K, V>{
// Required methods
fn len(self) -> usize;
fn children(self) -> Children<'a, K, V> ⓘ;
// Provided methods
fn key(self) -> Option<&'a K> { ... }
fn value(self) -> Option<&'a V> { ... }
fn is_empty(self) -> bool { ... }
fn is_leaf(self) -> bool { ... }
fn iter(self) -> Iter<'a, K, V> ⓘ { ... }
fn keys(self) -> Keys<'a, K, V> ⓘ { ... }
fn values(self) -> Values<'a, K, V> ⓘ { ... }
fn prefix(self) -> &'a Nibblet { ... }
}
Expand description
Common functionality available for tries and subtries.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.