pub struct Hash256RlpTrieStream { /* private fields */ }Expand description
Concrete TrieStream impl for the ethereum trie.
Trait Implementations§
Source§impl Default for Hash256RlpTrieStream
impl Default for Hash256RlpTrieStream
Source§fn default() -> Hash256RlpTrieStream
fn default() -> Hash256RlpTrieStream
Returns the “default value” for a type. Read more
Source§impl TrieStream for Hash256RlpTrieStream
impl TrieStream for Hash256RlpTrieStream
Source§fn append_empty_data(&mut self)
fn append_empty_data(&mut self)
Append an Empty node
Source§fn 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.
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<TrieStreamValue<'_>>)
fn end_branch(&mut self, value: Option<TrieStreamValue<'_>>)
Wrap up a Branch node portion of a
TrieStream and append the value
stored on the Branch (if any).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 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
Auto Trait Implementations§
impl Freeze for Hash256RlpTrieStream
impl RefUnwindSafe for Hash256RlpTrieStream
impl Send for Hash256RlpTrieStream
impl Sync for Hash256RlpTrieStream
impl Unpin for Hash256RlpTrieStream
impl UnwindSafe for Hash256RlpTrieStream
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