Trait numcodecs_uniform_noise::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

Object Safety§

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§