Float

Trait Float 

Source
pub trait Float:
    'static
    + Display
    + Sync
    + Send
    + Into<Value>
    + Primitive
    + AddAssign
    + SubAssign
    + MulAssign
    + DivAssign
    + Float
    + NumCast
    + ConstZero
    + ConstOne
    + MulSub
    + PartialCmp
    + Clamp
    + Real
    + Zero
    + One
    + FromScalar<Scalar = Self>
    + Recip
    + IsValidDivisor
    + HasBoolMask<Mask = bool>
    + Arithmetics
    + Powf
    + Powi
    + Cbrt
    + MulAdd
    + Sqrt {
    const HALF: Self;
    const EPSILON: Self;
    const INFINITY: Self;
    const TWO: Self;
    const PI: Self;
    const SQRT140050: Self;
    const HALF_SQRT140050: Self;
    const TWO_FIVE_FIVE: Self;
    const FLOYD_STEINBERG: [DitherWeight<Self>; 4];
    const MINUS_HUNDRED_TWENTY_EIGHT: Self;
    const HUNDRED_TWENTY_SEVEN: Self;
    const HUNDRED: Self;

    // Required method
    fn min(self, other: Self) -> Self;
}

Required Associated Constants§

Source

const HALF: Self

Source

const EPSILON: Self

Source

const INFINITY: Self

Source

const TWO: Self

Source

const PI: Self

Source

const SQRT140050: Self

Source

const HALF_SQRT140050: Self

Source

const TWO_FIVE_FIVE: Self

Source

const FLOYD_STEINBERG: [DitherWeight<Self>; 4]

Source

const MINUS_HUNDRED_TWENTY_EIGHT: Self

Source

const HUNDRED_TWENTY_SEVEN: Self

Source

const HUNDRED: Self

Required Methods§

Source

fn min(self, other: Self) -> Self

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

Source§

const HALF: Self = 0.5f32

Source§

const EPSILON: Self = 1.1920929E-7f32

Source§

const INFINITY: Self = +Inf_f32

Source§

const TWO: Self = 2f32

Source§

const PI: Self = 3.14159274f32

Source§

const SQRT140050: Self = 374.232544f32

Source§

const TWO_FIVE_FIVE: Self = 255f32

Source§

const HALF_SQRT140050: Self = 187.116272f32

Source§

const FLOYD_STEINBERG: [DitherWeight<Self>; 4]

Source§

const MINUS_HUNDRED_TWENTY_EIGHT: Self = -128f32

Source§

const HUNDRED_TWENTY_SEVEN: Self = 127f32

Source§

const HUNDRED: Self = 100f32

Source§

fn min(self, other: Self) -> Self

Source§

impl Float for f64

Source§

const HALF: Self = 0.5f64

Source§

const EPSILON: Self = 2.2204460492503131E-16f64

Source§

const INFINITY: Self = +Inf_f64

Source§

const TWO: Self = 2f64

Source§

const PI: Self = 3.1415926535897931f64

Source§

const SQRT140050: Self = 374.23254802328461f64

Source§

const TWO_FIVE_FIVE: Self = 255f64

Source§

const HALF_SQRT140050: Self = 187.1162740116423f64

Source§

const FLOYD_STEINBERG: [DitherWeight<Self>; 4]

Source§

const MINUS_HUNDRED_TWENTY_EIGHT: Self = -128f64

Source§

const HUNDRED_TWENTY_SEVEN: Self = 127f64

Source§

const HUNDRED: Self = 100f64

Source§

fn min(self, other: Self) -> Self

Implementors§