pub trait HashAlgo: Default {
type Kernel: HashAlgoKernel;
// Provided methods
fn setup() -> <<Self as HashAlgo>::Kernel as HashAlgoKernel>::Option { ... }
fn hash(
input: &[u8],
) -> Result<<<Self as HashAlgo>::Kernel as HashAlgoKernel>::Output, <<Self as HashAlgo>::Kernel as HashAlgoKernel>::Error> { ... }
}Expand description
A hash algorithm.
Required Associated Types§
type Kernel: HashAlgoKernel
Provided 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.