pub trait DirectionKind: Copy {
type Inner: Display + Copy + Num + Decode + Encode + Default;
// Required methods
fn name() -> &'static str;
fn from_radians(value: f32) -> Self::Inner;
fn to_radians(value: Self::Inner) -> f32;
}Expand description
DirectionKind
Required Associated Types§
Required Methods§
Sourcefn from_radians(value: f32) -> Self::Inner
fn from_radians(value: f32) -> Self::Inner
Convert from radians
Sourcefn to_radians(value: Self::Inner) -> f32
fn to_radians(value: Self::Inner) -> f32
Convert into radians
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.