pub trait MinDigest {
type Output;
// Required methods
fn update(&mut self, data: impl AsRef<[u8]>);
fn finalize(self) -> Self::Output;
}Expand description
A minimal version of [Digest][digest::digest] trait that is used to implement the WriteHasher
and all implementations of the Digest trait.
Required Associated Types§
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.
Implementors§
Source§impl<MD: MinDigest, T> MinDigest for WriteHasher<MD, T>
impl<MD: MinDigest, T> MinDigest for WriteHasher<MD, T>
Source§impl<T: Digest> MinDigest for T
Available on crate feature digest only.
impl<T: Digest> MinDigest for T
Available on crate feature
digest only.