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 Envwhere
*const u8 is !null: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, OsString)>: Freeze,
impl Move for Env
impl RefUnwindSafe for Env
impl Send for Envwhere
RawVecInner: Send,
impl Sync for Envwhere
RawVecInner: Sync,
impl Unpin for Env
impl UnsafeUnpin for Envwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, OsString)>: UnsafeUnpin,
impl UnwindSafe for Envwhere
RawVecInner: UnwindSafe,
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.