pub trait KeyHasher:
Default
+ Clone
+ Send
+ Sync
+ 'static {
// Required method
fn hash_key<T: AsRef<[u8]>>(bytes: T) -> B256;
}
Expand description
Trait for hashing keys in state.
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.