[][src]Trait mag::time::Unit

pub trait Unit {
    const ABBREVIATION: &'static str;
    const INVERSE: &'static str;

    fn s_factor() -> f64;

    fn factor<T: Unit>() -> f64 { ... }
}

Unit definition for time

Associated Constants

const ABBREVIATION: &'static str

Unit abbreviation

const INVERSE: &'static str

Inverse unit abbreviation

Loading content...

Required methods

fn s_factor() -> f64

Multiplication factor to convert to seconds

Loading content...

Provided methods

fn factor<T: Unit>() -> f64

Multiplication factor to convert to another unit

Loading content...

Implementors

impl Unit for Gs[src]

impl Unit for Ks[src]

impl Unit for Ms[src]

impl Unit for d[src]

impl Unit for ds[src]

impl Unit for h[src]

impl Unit for min[src]

impl Unit for ms[src]

impl Unit for ns[src]

impl Unit for ps[src]

impl Unit for s[src]

impl Unit for us[src]

impl Unit for wk[src]

Loading content...