[][src]Trait mag::length::Unit

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

    fn m_factor() -> f64;

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

Unit definition for Length

Associated Constants

const ABBREVIATION: &'static str

Unit abbreviation

Loading content...

Required methods

fn m_factor() -> f64

Multiplication factor to convert to meters

Loading content...

Provided methods

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

Multiplication factor to convert to another unit

Loading content...

Implementors

impl Unit for In[src]

impl Unit for cm[src]

impl Unit for dm[src]

impl Unit for ft[src]

impl Unit for km[src]

impl Unit for m[src]

impl Unit for mi[src]

impl Unit for mm[src]

impl Unit for nm[src]

impl Unit for um[src]

impl Unit for yd[src]

Loading content...