/// A convenience function in the same vein as [prune_mmr], but applied to `MutableMmr` instances.
A convenience function in the same vein as [prune_mmr], but applied to `MutableMmr` instances.
A convenience function in the same vein as [ prune_mmr ] but applied to ` MutableMmr ` instances .
pub fn prune_mutable_mmr<D, B>(mmr: &MutableMmr<D, B>) -> Result<PrunedMutableMmr<D>, MerkleMountainRangeError>
where
    D: Digest,
    B: ArrayLike<Value = Hash>,
{
    let backend = PrunedHashSet::try_from(&mmr.mmr)?;
    Ok(MutableMmr {
        mmr: MerkleMountainRange::new(backend),
        deleted: mmr.deleted.clone(),
        size: mmr.size,
    })
}
pub fn prune_mutable_mmr < D , B > ( mmr : & MutableMmr < D , B > ) -> Result < PrunedMutableMmr < D > , MerkleMountainRangeError > where D : Digest , B : ArrayLike < Value = Hash > , { let backend = PrunedHashSet :: try_from ( & mmr . mmr ) ? ; Ok ( MutableMmr { mmr : MerkleMountainRange :: new ( backend ) , deleted : mmr . deleted . clone ( ) , size : mmr . size , } ) }
A convenience function in the same vein as [prune_mmr], but applied to `MutableMmr` instances.
A convenience function in the same vein as [ prune_mmr ] but applied to ` MutableMmr ` instances .
mmr
&MutableMmr<D, B>