Enum patricia_trie::TrieKinds
[−]
[src]
pub enum TrieKinds<'db> { Generic(TrieDB<'db>), Secure(SecTrieDB<'db>), Fat(FatDB<'db>), }
All different kinds of tries. This is used to prevent a heap allocation for every created trie.
Variants
Generic(TrieDB<'db>)
A generic trie db.
Secure(SecTrieDB<'db>)
A secure trie db.
Fat(FatDB<'db>)
A fat trie db.
Trait Implementations
impl<'db> Trie for TrieKinds<'db>
[src]
fn root(&self) -> &H256
[src]
Return the root of the trie.
fn is_empty(&self) -> bool
[src]
Is the trie empty?
fn contains(&self, key: &[u8]) -> Result<bool>
[src]
Does the trie contain a given key?
fn get_with<'a, 'key, Q: Query>(
&'a self,
key: &'key [u8],
query: Q
) -> Result<Option<Q::Item>> where
'a: 'key,
[src]
&'a self,
key: &'key [u8],
query: Q
) -> Result<Option<Q::Item>> where
'a: 'key,
Search for the key with the given query parameter. See the docs of the Query
trait for more details. Read more
fn iter<'a>(&'a self) -> Result<Box<TrieIterator<Item = TrieItem> + 'a>>
[src]
Returns a depth-first iterator over the elements of trie.
fn get<'a, 'key>(&'a self, key: &'key [u8]) -> Result<Option<DBValue>> where
'a: 'key,
[src]
'a: 'key,
What is the value of the given key in this trie?