Skip to main content

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".

Implementations on Foreign Types§

Source§

impl Float for f32

Source§

const HALF: Self = 0.5

Source§

const EPSILON: Self = f32::EPSILON

Source§

const INFINITY: Self = f32::INFINITY

Source§

const TWO: Self = 2.0

Source§

const PI: Self = core::f32::consts::PI

Source§

const SQRT140050: Self

Source§

const TWO_FIVE_FIVE: Self = 255.0

Source§

const HALF_SQRT140050: Self

Source§

const FLOYD_STEINBERG: [DitherWeight<Self>; 4]

Source§

const MINUS_HUNDRED_TWENTY_EIGHT: Self = -128.0

Source§

const HUNDRED_TWENTY_SEVEN: Self = 127.0

Source§

const HUNDRED: Self = 100.0

Source§

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

Source§

impl Float for f64

Source§

const HALF: Self = 0.5

Source§

const EPSILON: Self = f64::EPSILON

Source§

const INFINITY: Self = f64::INFINITY

Source§

const TWO: Self = 2.0

Source§

const PI: Self = core::f64::consts::PI

Source§

const SQRT140050: Self

Source§

const TWO_FIVE_FIVE: Self = 255.0

Source§

const HALF_SQRT140050: Self

Source§

const FLOYD_STEINBERG: [DitherWeight<Self>; 4]

Source§

const MINUS_HUNDRED_TWENTY_EIGHT: Self = -128.0

Source§

const HUNDRED_TWENTY_SEVEN: Self = 127.0

Source§

const HUNDRED: Self = 100.0

Source§

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

Implementors§