pub struct Env {
pub path: Vec<PathBuf>,
pub home: Option<PathBuf>,
pub vars: Vec<(String, OsString)>,
}Expand description
What the tool path is worked out from: the process’s PATH, the user’s home folder and the
variables it reads (Program Files, the system drive, VirtualBox’s install folder, and any a
registry PATH names), as values, so a test hands its own.
Fields§
§path: Vec<PathBuf>The PATH’s folders, in order.
home: Option<PathBuf>The user’s home folder.
vars: Vec<(String, OsString)>The variables, by name.
Implementations§
Trait Implementations§
impl Eq for Env
impl StructuralPartialEq for Env
Auto Trait Implementations§
impl Forget for Env
impl Freeze for Env
impl Move for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.