Struct patricia_trie::FatDB [] [src]

pub struct FatDB<'db> { /* fields omitted */ }

A Trie implementation which hashes keys and uses a generic HashDB backing database. Additionaly it stores inserted hash-key mappings for later retrieval.

Use it as a Trie or TrieMut trait object.

Methods

impl<'db> FatDB<'db>
[src]

[src]

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.

[src]

Get the backing database.

Trait Implementations

impl<'db> Trie for FatDB<'db>
[src]

[src]

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

[src]

Return the root of the trie.

[src]

Does the trie contain a given key?

[src]

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

[src]

Is the trie empty?

[src]

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