pub enum Match {
Trigger,
ShortName,
FullId,
}Expand description
How specifically a configured value names a check.
Ordered, so that when several keys match one check the most specific wins —
which only matters for amont.severity, since a skip is a boolean.
Variants§
Trigger
pre-commit — every check on that trigger.
ShortName
clippy — that check, whichever trigger it is on.
FullId
pre-commit-clippy — this check and no other.
Trait Implementations§
impl Copy for Match
impl Eq for Match
Source§impl Ord for Match
impl Ord for Match
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Match
impl PartialOrd for Match
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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