pub trait Hasher {
type Output;
// Required methods
fn clean(&mut self) -> &mut Self;
fn finish(&self) -> Result<Self::Output>;
fn include(&mut self, data: impl AsRef<[u8]>) -> &mut Self;
}Expand description
A Hasher defines a common interface for defining specific hashing algorithm.
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.