pub trait FloatHash {
// Required method
fn hash<H>(&self, state: &mut H)
where H: Hasher;
// Provided method
fn float_hash<H>(&self, state: &mut H)
where H: Hasher { ... }
}Expand description
Hashing for primitive floating-point values.
Required Methods§
fn hash<H>(&self, state: &mut H)where
H: Hasher,
👎Deprecated since 0.3.1: use
FloatHash::float_hash insteadProvided Methods§
fn float_hash<H>(&self, state: &mut H)where
H: Hasher,
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.