pub trait Unit {
type Measure;
const LABEL: &'static str;
const FACTOR: f64;
const ZERO: f64;
fn convert<T>(val: f64) -> f64
where
T: Unit<Measure = Self::Measure>,
{ ... }
}
Expand description
Unit of measure
pub trait Unit {
type Measure;
const LABEL: &'static str;
const FACTOR: f64;
const ZERO: f64;
fn convert<T>(val: f64) -> f64
where
T: Unit<Measure = Self::Measure>,
{ ... }
}
Unit of measure