Struct reference_trie::ReferenceTrieStreamNoExt
source · pub struct ReferenceTrieStreamNoExt { /* private fields */ }
Expand description
Reference implementation of a TrieStream
without extension.
Trait Implementations§
source§impl Clone for ReferenceTrieStreamNoExt
impl Clone for ReferenceTrieStreamNoExt
source§fn clone(&self) -> ReferenceTrieStreamNoExt
fn clone(&self) -> ReferenceTrieStreamNoExt
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 ReferenceTrieStreamNoExt
impl Default for ReferenceTrieStreamNoExt
source§fn default() -> ReferenceTrieStreamNoExt
fn default() -> ReferenceTrieStreamNoExt
Returns the “default value” for a type. Read more
source§impl TrieStream for ReferenceTrieStreamNoExt
impl TrieStream for ReferenceTrieStreamNoExt
source§fn append_empty_data(&mut self)
fn append_empty_data(&mut self)
Append an Empty node
source§fn append_leaf(&mut self, key: &[u8], value: TrieStreamValue<'_>)
fn append_leaf(&mut self, key: &[u8], value: TrieStreamValue<'_>)
Append a Leaf node
source§fn begin_branch(
&mut self,
maybe_partial: Option<&[u8]>,
maybe_value: Option<TrieStreamValue<'_>>,
has_children: impl Iterator<Item = bool>
)
fn begin_branch( &mut self, maybe_partial: Option<&[u8]>, maybe_value: Option<TrieStreamValue<'_>>, has_children: impl Iterator<Item = bool> )
Start a new Branch node, possibly with a value; takes a list indicating
which slots in the Branch node has further child nodes.
source§fn append_extension(&mut self, _key: &[u8])
fn append_extension(&mut self, _key: &[u8])
Append an Extension node
source§fn append_substream<H: Hasher>(&mut self, other: Self)
fn append_substream<H: Hasher>(&mut self, other: Self)
Append a Branch of Extension substream
source§fn append_empty_child(&mut self)
fn append_empty_child(&mut self)
Append an empty child node. Optional.
source§fn end_branch(&mut self, _value: Option<Value<'_>>)
fn end_branch(&mut self, _value: Option<Value<'_>>)
Wrap up a Branch node portion of a
TrieStream
and append the value
stored on the Branch (if any).