Struct reference_trie::ReferenceTrieStream
source · [−]pub struct ReferenceTrieStream { /* private fields */ }
Expand description
Reference implementation of a TrieStream
with extension nodes.
Trait Implementations
sourceimpl Clone for ReferenceTrieStream
impl Clone for ReferenceTrieStream
sourcefn clone(&self) -> ReferenceTrieStream
fn clone(&self) -> ReferenceTrieStream
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 ReferenceTrieStream
impl Default for ReferenceTrieStream
sourcefn default() -> ReferenceTrieStream
fn default() -> ReferenceTrieStream
Returns the “default value” for a type. Read more
sourceimpl TrieStream for ReferenceTrieStream
impl TrieStream for ReferenceTrieStream
sourcefn append_empty_data(&mut self)
fn append_empty_data(&mut self)
Append an Empty node
sourcefn append_leaf(&mut self, key: &[u8], value: TrieStreamValue<'_>)
fn append_leaf(&mut self, key: &[u8], value: TrieStreamValue<'_>)
Append a Leaf node
sourcefn begin_branch(
&mut self,
maybe_key: Option<&[u8]>,
maybe_value: Option<TrieStreamValue<'_>>,
has_children: impl Iterator<Item = bool>
)
fn begin_branch(
&mut self,
maybe_key: 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. Read more
sourcefn append_extension(&mut self, key: &[u8])
fn append_extension(&mut self, key: &[u8])
Append an Extension node
sourcefn append_substream<H: Hasher>(&mut self, other: Self)
fn append_substream<H: Hasher>(&mut self, other: Self)
Append a Branch of Extension substream
sourcefn append_empty_child(&mut self)
fn append_empty_child(&mut self)
Append an empty child node. Optional.
sourcefn 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). Read more
Auto Trait Implementations
impl RefUnwindSafe for ReferenceTrieStream
impl Send for ReferenceTrieStream
impl Sync for ReferenceTrieStream
impl Unpin for ReferenceTrieStream
impl UnwindSafe for ReferenceTrieStream
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