Struct reference_trie::AllowEmptyLayout
source · pub struct AllowEmptyLayout;
Expand description
Trie that allows empty values.
Trait Implementations§
source§impl Clone for AllowEmptyLayout
impl Clone for AllowEmptyLayout
source§fn clone(&self) -> AllowEmptyLayout
fn clone(&self) -> AllowEmptyLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for AllowEmptyLayout
impl Default for AllowEmptyLayout
source§fn default() -> AllowEmptyLayout
fn default() -> AllowEmptyLayout
Returns the “default value” for a type. Read more
source§impl TrieLayout for AllowEmptyLayout
impl TrieLayout for AllowEmptyLayout
source§const USE_EXTENSION: bool = true
const USE_EXTENSION: bool = true
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.
source§const ALLOW_EMPTY: bool = true
const ALLOW_EMPTY: bool = true
If true, the trie will allow empty values into
TrieDBMut
source§const MAX_INLINE_VALUE: Option<u32> = None
const MAX_INLINE_VALUE: Option<u32> = None
Threshold above which an external node should be
use to store a node value.
§type Hash = KeccakHasher
type Hash = KeccakHasher
Hasher to use for this trie.
§type Codec = ReferenceNodeCodec<KeccakHasher>
type Codec = ReferenceNodeCodec<KeccakHasher>
Codec to use (needs to match hasher and nibble ops).