Struct trie_db::sectriedbmut::SecTrieDBMut [−][src]
pub struct SecTrieDBMut<'db, L> where
L: TrieLayout, { /* fields omitted */ }
Expand description
A mutable Trie
implementation which hashes keys and uses a generic HashDB
backing database.
Use it as a Trie
or TrieMut
trait object. You can use raw()
to get the backing TrieDBMut
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 SecTrieDBMut<'db, L>
impl<'db, L> Send for SecTrieDBMut<'db, L>
impl<'db, L> Sync for SecTrieDBMut<'db, L>
impl<'db, L> Unpin for SecTrieDBMut<'db, L> where
<<L as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<'db, L> !UnwindSafe for SecTrieDBMut<'db, L>