pub struct XtaskCtx {
pub root: PathBuf,
pub in_git_hook: bool,
pub in_run_on_save: bool,
}Expand description
Common context passed into every Xtask
Fields§
§root: PathBufProject root directory
in_git_hook: boolxtask is running within a hook
in_run_on_save: boolxtask was invoked as part of a “run on save” operation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XtaskCtx
impl RefUnwindSafe for XtaskCtx
impl Send for XtaskCtx
impl Sync for XtaskCtx
impl Unpin for XtaskCtx
impl UnsafeUnpin for XtaskCtx
impl UnwindSafe for XtaskCtx
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