pub trait Float:
Primitive
+ Float
+ NumHash
+ NumOrd<Self> {
const MIN: Self;
const MAX: Self;
const ZERO: Self;
const ONE: Self;
const TWO: Self;
const THREE: Self;
const FOUR: Self;
const FIVE: Self;
const SIX: Self;
const EPS: Self;
const NAN: Self;
// Provided method
fn safe_clamp(self, min: Self, max: Self) -> Self { ... }
}Required Associated Constants§
const MIN: Self
const MAX: Self
const ZERO: Self
const ONE: Self
const TWO: Self
const THREE: Self
const FOUR: Self
const FIVE: Self
const SIX: Self
const EPS: Self
const NAN: Self
Provided Methods§
fn safe_clamp(self, min: Self, max: 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.