Skip to main content

parse_or

Function parse_or 

Source
pub fn parse_or<T: FromStr>(key: &str, default: T) -> T
Expand description

Parse key into T, falling back to default when unset/empty/unparseable.