Struct trie_db::TrieBuilder
source · [−]pub struct TrieBuilder<'a, T: TrieLayout, DB> {
pub root: Option<TrieHash<T>>,
/* private fields */
}
Expand description
Get trie root and insert visited node in a hash_db.
As for all ProcessEncodedNode
implementation, it
is only for full trie parsing (not existing trie).
Fields
root: Option<TrieHash<T>>
Implementations
Trait Implementations
impl<'a, T, DB> ProcessEncodedNode<<<T as TrieLayout>::Hash as Hasher>::Out> for TrieBuilder<'a, T, DB> where
T: TrieLayout,
DB: HashDB<T::Hash, DBValue>,
impl<'a, T, DB> ProcessEncodedNode<<<T as TrieLayout>::Hash as Hasher>::Out> for TrieBuilder<'a, T, DB> where
T: TrieLayout,
DB: HashDB<T::Hash, DBValue>,
Function call with prefix, encoded value and a boolean indicating if the node is the root for each node of the trie. Read more