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§
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 Methods§
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.