pub struct Environment<'a> {
pub root: Result<AppRoot, String>,
pub path_var: Option<&'a OsStr>,
pub cwd: &'a Path,
pub start: &'a Path,
pub is_set: &'a dyn Fn(&str) -> bool,
}Expand description
What a run reads from the process.
Fields§
§root: Result<AppRoot, String>AppRoot::resolve(), its error rendered with Display.
path_var: Option<&'a OsStr>§cwd: &'a PathThe process’s current directory.
start: &'a PathThe current directory, or cwd.join(--repo).
is_set: &'a dyn Fn(&str) -> boolWhether an environment variable is set.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Environment<'a>
impl<'a> !Send for Environment<'a>
impl<'a> !Sync for Environment<'a>
impl<'a> !UnwindSafe for Environment<'a>
impl<'a> Freeze for Environment<'a>
impl<'a> Unpin for Environment<'a>
impl<'a> UnsafeUnpin for Environment<'a>
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