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§
source§impl<'a, T: TrieLayout, DB> TrieBuilder<'a, T, DB>
impl<'a, T: TrieLayout, DB> TrieBuilder<'a, T, DB>
pub fn new(db: &'a mut DB) -> Self
Trait Implementations§
source§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>,
Auto Trait Implementations§
impl<'a, T, DB> RefUnwindSafe for TrieBuilder<'a, T, DB>where DB: RefUnwindSafe, <<T as TrieLayout>::Hash as Hasher>::Out: RefUnwindSafe,
impl<'a, T, DB> Send for TrieBuilder<'a, T, DB>where DB: Send,
impl<'a, T, DB> Sync for TrieBuilder<'a, T, DB>where DB: Sync,
impl<'a, T, DB> Unpin for TrieBuilder<'a, T, DB>where <<T as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<'a, T, DB> !UnwindSafe for TrieBuilder<'a, T, DB>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more