pub struct DecodedProofRetainer { /* private fields */ }
Expand description
Proof retainer is used to store proofs during merkle trie construction.
It is intended to be used within the HashBuilder
.
Implementations§
Source§impl DecodedProofRetainer
impl DecodedProofRetainer
Sourcepub fn matches(&self, prefix: &Nibbles) -> bool
pub fn matches(&self, prefix: &Nibbles) -> bool
Returns true
if the given prefix matches the retainer target.
Sourcepub fn into_proof_nodes(self) -> DecodedProofNodes
pub fn into_proof_nodes(self) -> DecodedProofNodes
Returns all collected proofs.
Trait Implementations§
Source§impl Clone for DecodedProofRetainer
impl Clone for DecodedProofRetainer
Source§fn clone(&self) -> DecodedProofRetainer
fn clone(&self) -> DecodedProofRetainer
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 Debug for DecodedProofRetainer
impl Debug for DecodedProofRetainer
Source§impl Default for DecodedProofRetainer
impl Default for DecodedProofRetainer
Source§fn default() -> DecodedProofRetainer
fn default() -> DecodedProofRetainer
Returns the “default value” for a type. Read more
Source§impl FromIterator<Nibbles> for DecodedProofRetainer
impl FromIterator<Nibbles> for DecodedProofRetainer
Auto Trait Implementations§
impl Freeze for DecodedProofRetainer
impl RefUnwindSafe for DecodedProofRetainer
impl Send for DecodedProofRetainer
impl Sync for DecodedProofRetainer
impl Unpin for DecodedProofRetainer
impl UnwindSafe for DecodedProofRetainer
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