Skip to main content

split_value_unit

Function split_value_unit 

Source
pub fn split_value_unit(s: &str) -> Result<(f64, &str), RegistryError>
Expand description

Split a string of the form "<numeric value> <unit symbol>" into its (value, unit) parts. Whitespace between the two is required.