Trait trie_db::TrieLayout[][src]

pub trait TrieLayout {
    type Hash: Hasher;
    type Codec: NodeCodec<HashOut = <Self::Hash as Hasher>::Out>;

    const USE_EXTENSION: bool;
    const ALLOW_EMPTY: bool;
}
Expand description

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

Associated Types

Hasher to use for this trie.

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

Associated Constants

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.

If true, the trie will allow empty values into TrieDBMut

Implementors