DirectionKind

Trait DirectionKind 

Source
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§

Source

type Inner: Display + Copy + Num + Decode + Encode + Default

Raw/Inner type

Required Methods§

Source

fn name() -> &'static str

Display name, used in Display implementation

Source

fn from_radians(value: f32) -> Self::Inner

Convert from radians

Source

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.

Implementors§