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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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.
Source§type Hash = KeccakHasher
type Hash = KeccakHasher
Hasher to use for this trie.
Source§type Codec = ReferenceNodeCodec<KeccakHasher>
type Codec = ReferenceNodeCodec<KeccakHasher>
Codec to use (needs to match hasher and nibble ops).
Auto Trait Implementations§
impl Freeze for AllowEmptyLayout
impl RefUnwindSafe for AllowEmptyLayout
impl Send for AllowEmptyLayout
impl Sync for AllowEmptyLayout
impl Unpin for AllowEmptyLayout
impl UnwindSafe for AllowEmptyLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more