pub struct TrieDBBuilder<'db, 'cache, L: TrieLayout> { /* private fields */ }
Expand description

A builder for creating a TrieDB.

Implementations

Create a new trie-db builder with the backing database db and root.

This doesn’t check if root exists in the given db. If root doesn’t exist it will fail when trying to lookup any key.

Use the given cache for the db.

Use the given optional cache for the db.

Use the given recorder to record trie accesses.

Use the given optional recorder to record trie accesses.

Build the TrieDB.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.