pub struct GateCtx {
pub repo_root: Utf8PathBuf,
}Expand description
Where a gate runs: the repository root pre-commit invoked it from.
Fields§
§repo_root: Utf8PathBufThe repository root; every path a gate reads or reports is relative to it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GateCtx
impl RefUnwindSafe for GateCtx
impl Send for GateCtx
impl Sync for GateCtx
impl Unpin for GateCtx
impl UnsafeUnpin for GateCtx
impl UnwindSafe for GateCtx
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