pub trait HashImpl {
type Context: HashContext;
// Required method
fn hasher() -> Self::Context;
// Provided method
fn digest(data: impl Writable) -> HashOutput { ... }
}Expand description
A hash function, selected at the type level.
Required Associated Types§
Sourcetype Context: HashContext
type Context: HashContext
The incremental hashing state for this function.
Required Methods§
Provided Methods§
Sourcefn digest(data: impl Writable) -> HashOutput
fn digest(data: impl Writable) -> HashOutput
Hashes the bytes written by data.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".