Skip to main content

get_unit_or_default

Function get_unit_or_default 

Source
pub fn get_unit_or_default(unit: &str) -> &'static Unit
Expand description

Tries to get the unit by name, if none is found, return a default unit