Struct trie_db::sectriedb::SecTrieDB[][src]

pub struct SecTrieDB<'db, L> where
    L: TrieLayout
{ /* fields omitted */ }
Expand description

A Trie implementation which hashes keys and uses a generic HashDB backing database.

Use it as a Trie trait object. You can use raw() to get the backing TrieDB object.

Implementations

Create a new trie with the backing database db and empty root

Initialise to the state entailed by the genesis block. This guarantees the trie is built correctly. Returns an error if root does not exist.

Get a reference to the underlying raw TrieDB struct.

Get a mutable reference to the underlying raw TrieDB struct.

Trait Implementations

Return the root of the trie.

Does the trie contain a given key?

Search for the key with the given query parameter. See the docs of the Query trait for more details. Read more

Returns a depth-first iterator over the elements of trie.

Is the trie empty?

What is the value of the given key in this trie?

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.