Skip to main content

TimeRepresentation

Trait TimeRepresentation 

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

    const NAME: &'static str;
}
Expand description

Marker trait for external time encodings such as JD or Unix time.

Required Associated Constants§

Source

const NAME: &'static str

Human-readable representation name.

Required Associated Types§

Source

type Unit: Unit

Quantity unit used by this representation.

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 TimeRepresentation for GPS

Source§

const NAME: &'static str = "GPS"

Source§

type Unit = Second

Source§

impl TimeRepresentation for J2000s

Source§

const NAME: &'static str = "J2000s"

Source§

type Unit = Second

Source§

impl TimeRepresentation for JD

Source§

const NAME: &'static str = "JD"

Source§

type Unit = Day

Source§

impl TimeRepresentation for MJD

Source§

const NAME: &'static str = "MJD"

Source§

type Unit = Day

Source§

impl TimeRepresentation for Unix

Source§

const NAME: &'static str = "Unix"

Source§

type Unit = Second