Trait mag::time::Unit

source · []
pub trait Unit {
    const LABEL: &'static str;
    const INVERSE: &'static str;
    const S_FACTOR: f64;
    fn factor<T: Unit>() -> f64 { ... }
}
Expand description

Unit definition for time

Associated Constants

Unit label

Inverse unit label

Multiplication factor to convert to seconds

Provided methods

Multiplication factor to convert to another unit

Implementors