Trait sp_trie::TrieLayout[][src]

pub trait TrieLayout {
    type Hash: Hasher;
    type Codec: NodeCodec;

    pub const USE_EXTENSION: bool;
    pub const ALLOW_EMPTY: bool;
}

Various re-exports from the trie-db crate. Trait with definition of trie layout. Contains all associated trait needed for a trie definition or implementation.

Associated Types

type Hash: Hasher[src]

Hasher to use for this trie.

type Codec: NodeCodec[src]

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

Loading content...

Associated Constants

pub const USE_EXTENSION: bool[src]

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.

pub const ALLOW_EMPTY: bool[src]

If true, the trie will allow empty values into TrieDBMut

Loading content...

Implementors

impl<H: Hasher> TrieLayout for Layout<H>[src]

Loading content...