Function envoption::require [] [src]

pub fn require<T>(var_name: &str,
                  default: Option<T>)
                  -> Result<T, EnvOptionError<T::Err>> where T: FromStr + Debug, T::Err: Error

Sugar around get to avoid the extra Option when it will never be None anyway.