pub fn convert_unit( value: f64, from: &str, to: &str, ) -> Result<f64, BindingError>
Convert value from the unit named from to the unit named to.
value
from
to
See the module docs.