mz_ore::env

Function is_var_truthy

Source
pub fn is_var_truthy<K>(key: K) -> bool
where K: AsRef<OsStr>,
Expand description

Reports whether the environment variable key is set to a truthy value in the current process’s environment.

The empty string and the string “0” are considered false. All other values are considered true.