decorum::hash

Trait FloatHash

Source
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§

Source

fn hash<H>(&self, state: &mut H)
where H: Hasher,

👎Deprecated since 0.3.1: use FloatHash::float_hash instead

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<T> FloatHash for [T]
where T: Float + Primitive,

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

👎Deprecated since 0.3.1: use FloatHash::float_hash instead

Implementors§

Source§

impl<T> FloatHash for T
where T: Float + Primitive,