pub trait HashValue {
// Required methods
fn hash_one(&self, state: &RandomState) -> u64;
fn hash_write(&self, hasher: &mut impl Hasher);
}Required Methods§
fn hash_one(&self, state: &RandomState) -> u64
Sourcefn hash_write(&self, hasher: &mut impl Hasher)
fn hash_write(&self, hasher: &mut impl Hasher)
Write this value into an existing hasher (same data as hash_one).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".