pub struct FatDBMut<'db, H, C> where
H: Hasher + 'db,
C: NodeCodec<H>, { /* 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.
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.
Get the backing database.
Get the backing database.
Return the root of the trie.
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
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
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static