pub trait DefaultRange: MinValue + MaxValue {
const MIN_RANGE: Self;
const HALF_RANGE: Self;
const MAX_RANGE: Self;
const RANGE: Self;
}Expand description
For floating the range is : [0., 1.]. For integers the range is : [0, MAX], even for signed
Required Associated Constants§
const MIN_RANGE: Self
Sourceconst HALF_RANGE: Self
const HALF_RANGE: Self
Useful for stuff like Color::GRAY
const MAX_RANGE: 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.