pub trait Builder<H: CHasher>: Send + Sync {
// Required methods
fn add(
&mut self,
hasher: &mut impl Hasher<H>,
element: &[u8],
) -> impl Future<Output = Result<u64, Error>>;
fn root(&self, hasher: &mut impl Hasher<H>) -> H::Digest;
}
Expand description
A trait for building an MMR and computing the root.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.