pub trait Unit { const LABEL: &'static str; const M_FACTOR: f64; fn factor<T: Unit>() -> f64 { ... } }
Unit definition for Length
Unit label
Multiplication factor to convert to meters
Multiplication factor to convert to another unit