Function parse_env_if_present

Source
pub fn parse_env_if_present<T: FromStr>(
    env_var: &str,
) -> Result<T, FromEnvErr<T::Err>>
Expand description

Convenience function for parsing a value from the environment, if present and non-empty.