Function strict_env::parse[][src]

pub fn parse<T: FromStr>(name: &str) -> Result<T, Error> where
    T::Err: Into<Box<dyn Error + Send + Sync>>, 

Parse an environment variable into a value that implements FromStr.

Errors

Returns an error if the requested environment variable is missing or empty, contains invalid UTF-8, or has a value that cannot be parsed into the target type.