Enum trie_db::TrieKinds

source ·
pub enum TrieKinds<'db, 'cache, L: TrieLayout> {
    Generic(TrieDB<'db, 'cache, L>),
    Secure(SecTrieDB<'db, 'cache, L>),
    Fat(FatDB<'db, 'cache, L>),
}
Expand description

All different kinds of tries. This is used to prevent a heap allocation for every created trie.

Variants§

§

Generic(TrieDB<'db, 'cache, L>)

A generic trie db.

§

Secure(SecTrieDB<'db, 'cache, L>)

A secure trie db.

§

Fat(FatDB<'db, 'cache, L>)

A fat trie db.

Trait Implementations§

Return the root of the trie.
Is the trie empty?
Does the trie contain a given key?
Returns the hash of the value for key.
Search for the key with the given query parameter. See the docs of the Query trait for more details. Read more
Returns a depth-first iterator over the elements of trie.
Returns a depth-first iterator over the keys of elemets of trie.
What is the value of the given key in this trie?

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.