Struct reference_trie::AllowEmptyLayout
source · [−]pub struct AllowEmptyLayout;
Expand description
Trie that allows empty values.
Trait Implementations
sourceimpl Clone for AllowEmptyLayout
impl Clone for AllowEmptyLayout
sourcefn clone(&self) -> AllowEmptyLayout
fn clone(&self) -> AllowEmptyLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for AllowEmptyLayout
impl Default for AllowEmptyLayout
sourcefn default() -> AllowEmptyLayout
fn default() -> AllowEmptyLayout
Returns the “default value” for a type. Read more
sourceimpl TrieLayout for AllowEmptyLayout
impl TrieLayout for AllowEmptyLayout
sourceconst 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. Read more
sourceconst ALLOW_EMPTY: bool = true
const ALLOW_EMPTY: bool = true
If true, the trie will allow empty values into TrieDBMut
sourceconst 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. Read more
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).
Auto Trait Implementations
impl RefUnwindSafe for AllowEmptyLayout
impl Send for AllowEmptyLayout
impl Sync for AllowEmptyLayout
impl Unpin for AllowEmptyLayout
impl UnwindSafe for AllowEmptyLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more