Enum patricia_trie::TrieKinds[][src]

pub enum TrieKinds<'db, H: Hasher + 'db, C: NodeCodec<H>> {
    Generic(TrieDB<'db, H, C>),
    Secure(SecTrieDB<'db, H, C>),
    Fat(FatDB<'db, H, C>),
}

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

Variants

A generic trie db.

A secure trie db.

A fat trie db.

Trait Implementations

impl<'db, H: Hasher, C: NodeCodec<H>> Trie<H, C> for TrieKinds<'db, H, C>
[src]

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

impl<'db, H, C> Send for TrieKinds<'db, H, C> where
    C: Send,
    <H as Hasher>::Out: Sync

impl<'db, H, C> Sync for TrieKinds<'db, H, C> where
    C: Sync,
    <H as Hasher>::Out: Sync