Skip to main content

Frame

Trait Frame 

Source
pub trait Frame:
    Sealed
    + Copy
    + Clone
    + Debug
    + 'static {
    const NAME: &'static str;
    const SUFFIX: char;
}
Expand description

Reference frame of a Direction.

Sealed: only the frames below exist.

Required Associated Constants§

Source

const NAME: &'static str

Frame name for errors and display.

Source

const SUFFIX: char

Single-letter suffix, as in 045.0°M.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Frame for Compass

Source§

const NAME: &'static str = "compass"

Source§

const SUFFIX: char = 'C'

Source§

impl Frame for Gyro

Source§

const NAME: &'static str = "gyro"

Source§

const SUFFIX: char = 'G'

Source§

impl Frame for Magnetic

Source§

const NAME: &'static str = "magnetic"

Source§

const SUFFIX: char = 'M'

Source§

impl Frame for True

Source§

const NAME: &'static str = "true"

Source§

const SUFFIX: char = 'T'