pub trait ParallelDigest: Send {
type Digest: Digest + Send;
// Required methods
fn new() -> Self;
fn new_with_prefix(data: impl AsRef<[u8]>) -> Self;
fn digest(
&self,
source: impl IndexedParallelIterator<Item: Serializable>,
out: &mut [MaybeUninit<Output<Self::Digest>>],
);
}
Required Associated Types§
Required Methods§
Sourcefn new_with_prefix(data: impl AsRef<[u8]>) -> Self
fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
Create new hasher instance which has processed the provided data.
Sourcefn digest(
&self,
source: impl IndexedParallelIterator<Item: Serializable>,
out: &mut [MaybeUninit<Output<Self::Digest>>],
)
fn digest( &self, source: impl IndexedParallelIterator<Item: Serializable>, out: &mut [MaybeUninit<Output<Self::Digest>>], )
Calculate the digest of multiple hashes where each of them is serialized into the same number of bytes.
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.