Standard

Trait Standard 

Source
pub trait Standard:
    Debug
    + Sized
    + Clone {
    // Required methods
    fn abbrev() -> &'static str;
    fn to_tt(at: Instant) -> Instant;
    fn from_tt(at: Instant) -> Instant;
}
Expand description

A standard of time

Required Methods§

Source

fn abbrev() -> &'static str

Short capital-letter abbreviation for the time standard (usually 2 or 3 letters)

Source

fn to_tt(at: Instant) -> Instant

Convert the given abnormal Instant at into an Instant using TT.

Source

fn from_tt(at: Instant) -> Instant

Convert the given Instant at into an abnormal Instant using S

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§