pub trait ValueHasher {
// Required method
fn hash_value(value: &[u8]) -> [u8; 32];
}Expand description
A hasher for arbitrary-length values.
Required Methods§
Sourcefn hash_value(value: &[u8]) -> [u8; 32]
fn hash_value(value: &[u8]) -> [u8; 32]
Hash an arbitrary-length value.
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.