pub struct AllowEmptyLayout;Expand description
Trie that allows empty values
Trait Implementations§
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
TrieDBMutSource§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