Skip to main content

convert_unit

Function convert_unit 

Source
pub fn convert_unit(
    value: f64,
    from: &str,
    to: &str,
) -> Result<f64, BindingError>
Expand description

Convert value from the unit named from to the unit named to.

ยงErrors

See the module docs.