pub struct PathEnv {
pub explicit_dir: Option<String>,
pub xdg_config_home: Option<String>,
pub home: Option<PathBuf>,
pub native_config: Option<PathBuf>,
}Expand description
The inputs resolution reads.
Built from the process in from_process, and constructed literally in tests.
Keeping the environment out of the resolution itself is what lets the tests
run in parallel without a lock around set_var.
Fields§
§explicit_dir: Option<String>§xdg_config_home: Option<String>§home: Option<PathBuf>§native_config: Option<PathBuf>Windows only: %LOCALAPPDATA%. Deliberately the local one, not roaming;
see default_base.
Implementations§
Source§impl PathEnv
impl PathEnv
pub fn from_process() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Forget for PathEnv
impl Freeze for PathEnv
impl Move for PathEnv
impl RefUnwindSafe for PathEnv
impl Send for PathEnv
impl Sync for PathEnv
impl Unpin for PathEnv
impl UnsafeUnpin for PathEnv
impl UnwindSafe for PathEnv
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