Skip to main content

convert_between

Function convert_between 

Source
pub fn convert_between(
    model: &Model,
    value: f64,
    from: EntityId,
    to: EntityId,
) -> Result<f64, UnitConversionError>
Expand description

Convert value from one of the model’s units to another.

§Errors

As resolve_unit for either unit, and as crate::unit_conversion.