pub struct Trigger {
pub scope: Scope,
pub twins: Vec<(String, Scope)>,
}Expand description
What a pre-commit declaration fires on once its push twins’ files count
too, and which twins those are: the scope, and the id and scope of each
gate whose reach it borrowed (pre-push-cargo-test), so a commit can say
which gate reads the file it is testing.
Fields§
§scope: Scope§twins: Vec<(String, Scope)>Every push gate whose files it covers: a declared pre-push line
before the built-in gate, each with the scope it acts on.
Implementations§
Trait Implementations§
impl Eq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Forget for Trigger
impl Freeze for Trigger
impl Move for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Triggerwhere
RawVecInner: Sync,
impl Unpin for Trigger
impl UnsafeUnpin for Triggerwhere
&'static [&'static str]: UnsafeUnpin,
&'static [GitState]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Scope)>: UnsafeUnpin,
impl UnwindSafe for Triggerwhere
&'static [&'static str]: UnwindSafe,
&'static [GitState]: UnwindSafe,
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