numcodecs_uniform_noise

Trait FloatExt

Source
pub trait FloatExt: Float {
    const NEG_HALF: Self;

    // Required method
    fn hash_bits<H: Hasher>(self, hasher: &mut H);
}
Expand description

Floating point types

Required Associated Constants§

Source

const NEG_HALF: Self

-0.5

Required Methods§

Source

fn hash_bits<H: Hasher>(self, hasher: &mut H)

Hash the binary representation of the floating point value

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 FloatExt for f32

Source§

const NEG_HALF: Self = -0.5f32

Source§

fn hash_bits<H: Hasher>(self, hasher: &mut H)

Source§

impl FloatExt for f64

Source§

const NEG_HALF: Self = -0.5f64

Source§

fn hash_bits<H: Hasher>(self, hasher: &mut H)

Implementors§