pub struct NoopLeafHashCollector;Expand description
A LeafHashCollector that doesn’t collect leaf hashes.
Trait Implementations§
Source§impl LeafHashCollector for NoopLeafHashCollector
impl LeafHashCollector for NoopLeafHashCollector
Source§type Output = GenericDigest<FuchsiaMerkleMarker>
type Output = GenericDigest<FuchsiaMerkleMarker>
The output type of
MerkleRootBuilder::complete. This allows for complete to return
just the merkle root with NoopLeafHashCollector and also return the leaf hashes when a
real LeafHashCollector is used.Source§fn add_leaf_hash(&mut self, _hash: Hash)
fn add_leaf_hash(&mut self, _hash: Hash)
This method is called as each leaf hash in the merkle tree is created. Read more
Auto Trait Implementations§
impl Freeze for NoopLeafHashCollector
impl RefUnwindSafe for NoopLeafHashCollector
impl Send for NoopLeafHashCollector
impl Sync for NoopLeafHashCollector
impl Unpin for NoopLeafHashCollector
impl UnwindSafe for NoopLeafHashCollector
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