Skip to main content

TimeScale

Trait TimeScale 

Source
pub trait TimeScale:
    Sealed
    + Copy
    + Clone
    + Debug
    + Eq
    + Ord
    + Hash
    + Default
    + 'static {
    const NAME: &'static str;
}
Expand description

Time scale of an Instant.

Sealed: only the scales below exist.

Required Associated Constants§

Source

const NAME: &'static str

Scale suffix: "UTC", "GPS", "TAI".

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl TimeScale for Gps

Source§

const NAME: &'static str = "GPS"

Source§

impl TimeScale for Tai

Source§

const NAME: &'static str = "TAI"

Source§

impl TimeScale for Utc

Source§

const NAME: &'static str = "UTC"