pub fn convert(value: f64, from: &Unit, to: &Unit) -> Result<f64, UnitsError>
Convert value from one unit to another. Fails closed if the units have different dimensions (e.g. metres → seconds).
value