[][src]Enum trie_db::TrieKinds

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

Generic(TrieDB<'db, H, C>)

A generic trie db.

Secure(SecTrieDB<'db, H, C>)

A secure trie db.

Fat(FatDB<'db, H, C>)

A fat trie db.

Trait Implementations

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

fn get<'a, 'key>(
    &'a self,
    key: &'key [u8]
) -> Result<Option<DBValue>, H::Out, C::Error> where
    'a: 'key, 
[src]

What is the value of the given key in this trie?

Auto Trait Implementations

impl<'db, H, C> !Send for TrieKinds<'db, H, C>

impl<'db, H, C> !Sync for TrieKinds<'db, H, C>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.