[][src]Trait trie_db::TrieLayout

pub trait TrieLayout {
    type Hash: Hasher;
    type Codec: NodeCodec<Self::Hash>;

    const USE_EXTENSION: bool;
}

Trait with definition of trie layout. Contains all associated trait needed for a trie definition or implementation.

Associated Types

type Hash: Hasher

Hasher to use for this trie.

type Codec: NodeCodec<Self::Hash>

Codec to use (needs to match hasher and nibble ops).

Loading content...

Associated Constants

const USE_EXTENSION: bool

If true, the trie will use extension nodes and no partial in branch, if false the trie will only use branch and node with partials in both.

Loading content...

Implementors

Loading content...