Function decorum::hash_float [] [src]

pub fn hash_float<T, H>(value: T, state: &mut H) where
    T: Float + Primitive,
    H: Hasher

Hashes a raw floating point value.

To perform the hash, the floating point value is normalized. If NaN or zero, a canonical form is used, so all NaNs result in the same hash and all zeroes (positive and negative) result in the same hash.