pub struct PatternStats {
pub enabled_categories: usize,
pub disabled_categories: usize,
pub enabled_rules: usize,
pub disabled_rules: usize,
pub regex_patterns: usize,
pub ast_patterns: usize,
pub semantic_patterns: usize,
pub import_patterns: usize,
}Expand description
Statistics about configured patterns
Fields§
§enabled_categories: usize§disabled_categories: usize§enabled_rules: usize§disabled_rules: usize§regex_patterns: usize§ast_patterns: usize§semantic_patterns: usize§import_patterns: usizeImplementations§
Source§impl PatternStats
impl PatternStats
pub fn total_categories(&self) -> usize
pub fn total_rules(&self) -> usize
Trait Implementations§
Source§impl Debug for PatternStats
impl Debug for PatternStats
Source§impl Default for PatternStats
impl Default for PatternStats
Source§fn default() -> PatternStats
fn default() -> PatternStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PatternStats
impl RefUnwindSafe for PatternStats
impl Send for PatternStats
impl Sync for PatternStats
impl Unpin for PatternStats
impl UnwindSafe for PatternStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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