use nu_protocol::Value; use std::ffi::OsString; use std::fmt::Debug; pub trait Env: Debug + Send { fn env(&self) -> Option; fn path(&self) -> Option; fn add_env(&mut self, key: &str, value: &str); fn add_path(&mut self, new_path: OsString); } impl Env for Box { fn env(&self) -> Option { (**self).env() } fn path(&self) -> Option { (**self).path() } fn add_env(&mut self, key: &str, value: &str) { (**self).add_env(key, value); } fn add_path(&mut self, new_path: OsString) { (**self).add_path(new_path); } }