Skip to main content

parse_or

Function parse_or 

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

Parse a variable into any FromStr type, falling back on unset or unparseable values.