Skip to main content

Scale

Trait Scale 

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

Marker trait for a scientifically distinct time scale.

Sealed: implementations live in this crate only — downstream crates cannot add new scales.

Required Associated Constants§

Source

const NAME: &'static str

Display name of the scale. Used by Debug on Time.

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§

Source§

impl Scale for TAI

Source§

const NAME: &'static str = "TAI"

Source§

impl Scale for TCB

Source§

const NAME: &'static str = "TCB"

Source§

impl Scale for TCG

Source§

const NAME: &'static str = "TCG"

Source§

impl Scale for TDB

Source§

const NAME: &'static str = "TDB"

Source§

impl Scale for TT

Source§

const NAME: &'static str = "TT"

Source§

impl Scale for UT1

Source§

const NAME: &'static str = "UT1"

Source§

impl Scale for UTC

Source§

const NAME: &'static str = "UTC"