Skip to main content

var

Function var 

pub fn var(name: &str) -> Result<String, VarError>
Expand description

std::env::var(name) through the host’s environment access.

§Errors

As std::env::var: VarError::NotPresent when the variable is unset, VarError::NotUnicode when the value is not UTF-8.