pub struct ProofRetainer { /* 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 ProofRetainer
impl ProofRetainer
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) -> ProofNodes
pub fn into_proof_nodes(self) -> ProofNodes
Returns all collected proofs.
Trait Implementations§
Source§impl Clone for ProofRetainer
impl Clone for ProofRetainer
Source§fn clone(&self) -> ProofRetainer
fn clone(&self) -> ProofRetainer
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 ProofRetainer
impl Debug for ProofRetainer
Source§impl Default for ProofRetainer
impl Default for ProofRetainer
Source§fn default() -> ProofRetainer
fn default() -> ProofRetainer
Returns the “default value” for a type. Read more
Source§impl FromIterator<Nibbles> for ProofRetainer
impl FromIterator<Nibbles> for ProofRetainer
Auto Trait Implementations§
impl Freeze for ProofRetainer
impl RefUnwindSafe for ProofRetainer
impl Send for ProofRetainer
impl Sync for ProofRetainer
impl Unpin for ProofRetainer
impl UnwindSafe for ProofRetainer
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