pub trait Unit<F: Float>: Sized {
const DBG_NAME: &'static str;
const QUARTER_TURN: F;
const HALF_TURN: F;
const FULL_TURN: F;
// Required method
fn display(val: F, f: &mut Formatter<'_>) -> Result
where F: Display;
}Expand description
A unit of measurement for an Angle.
Required Associated Constants§
const DBG_NAME: &'static str
Sourceconst QUARTER_TURN: F
const QUARTER_TURN: F
Number for a quarter turn around a circle in this unit space.
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.