Skip to main content

TimeFormat

Trait TimeFormat 

Source
pub trait TimeFormat:
    Sealed
    + Copy
    + Clone
    + Debug
    + 'static {
    type Unit: Unit;

    const NAME: &'static str;
}
Expand description

Marker trait for an external time encoding such as JD or Unix time.

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl TimeFormat for GPS

Source§

const NAME: &'static str = "GPS"

Source§

type Unit = Second

Source§

impl TimeFormat for J2000s

Source§

const NAME: &'static str = "J2000s"

Source§

type Unit = Second

Source§

impl TimeFormat for JD

Source§

const NAME: &'static str = "JD"

Source§

type Unit = Day

Source§

impl TimeFormat for MJD

Source§

const NAME: &'static str = "MJD"

Source§

type Unit = Day

Source§

impl TimeFormat for Unix

Source§

const NAME: &'static str = "Unix"

Source§

type Unit = Second