[go: up one dir, main page]

get_i8

Function get_i8 

Source
pub fn get_i8<K: AsRef<OsStr>>(key: K, default_value: i8) -> i8
Expand description

Returns the environment variable value or a default value in case the variable is not defined or cannot be parsed.

ยงArguments

  • key - The environment variable name
  • default_value - Returned if the variable does not exist or cannot be parsed