[−][src]Function envmnt::get_remove
pub fn get_remove<K: AsRef<OsStr>>(key: K) -> Option<String>
Removes the provided environment variable and returns its previous value (if any).
Arguments
key- The environment variable to remove
Example
extern crate envmnt; fn main() { envmnt::set("MY_ENV_VAR", "SOME VALUE"); let value = envmnt::get_remove("MY_ENV_VAR"); println!("Env Value: {:?}", &value); }