pub trait Float:
Primitive
+ Float
+ NumHash
+ NumOrd<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 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".