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

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

Variants

Generic(TrieDB<'db, L>)

A generic trie db.

Secure(SecTrieDB<'db, L>)

A secure trie db.

Fat(FatDB<'db, L>)

A fat trie db.

Trait Implementations

Return the root of the trie.

Is the trie empty?

Does the trie contain a given 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.

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.