Struct trie_db::FatDBMut [−][src]
pub struct FatDBMut<'db, L> where
L: TrieLayout, { /* fields omitted */ }
Expand description
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.
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.
Create a new trie with the backing database db
and root
.
Returns an error if root does not exist.
Trait Implementations
Does the trie contain a given key?
What is the value of the given key in this trie?
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
Auto Trait Implementations
impl<'db, L> !RefUnwindSafe for FatDBMut<'db, L>
impl<'db, L> !UnwindSafe for FatDBMut<'db, L>