Struct patricia_trie::FatDBMut [] [src]

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

A mutable 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> FatDBMut<'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]

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

Returns an error if root does not exist.

[src]

Get the backing database.

[src]

Get the backing database.

Trait Implementations

impl<'db> TrieMut for FatDBMut<'db>
[src]

[src]

Return the root of the trie.

[src]

Is the trie empty?

[src]

Does the trie contain a given key?

[src]

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

[src]

Insert a key/value pair into the trie. An empty value is equivalent to removing key from the trie. Returns the old value associated with this key, if it existed. Read more

[src]

Remove a key from the trie. Equivalent to making it equal to the empty value. Returns the old value associated with this key, if it existed. Read more