pub struct RatchetRule { /* private fields */ }Expand description
A ratchet rule that counts literal pattern occurrences across all files.
Each match is reported as a violation. The scan layer post-processes:
if total matches <= max_count, all violations are suppressed (the team
is under budget). If over max_count, all violations are kept.
Implementations§
Source§impl RatchetRule
impl RatchetRule
Trait Implementations§
Source§impl Debug for RatchetRule
impl Debug for RatchetRule
Source§impl Rule for RatchetRule
impl Rule for RatchetRule
Auto Trait Implementations§
impl Freeze for RatchetRule
impl RefUnwindSafe for RatchetRule
impl Send for RatchetRule
impl Sync for RatchetRule
impl Unpin for RatchetRule
impl UnsafeUnpin for RatchetRule
impl UnwindSafe for RatchetRule
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more