Skip to main content

parse_or

Function parse_or 

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

Parses the value of key, or returns default if it is unset.