pub struct SuppressionManager { /* private fields */ }Expand description
Manages suppression state while scanning content
Implementations§
Source§impl SuppressionManager
impl SuppressionManager
pub fn new() -> Self
Sourcepub fn process_line(&mut self, line: &str) -> Option<SuppressionType>
pub fn process_line(&mut self, line: &str) -> Option<SuppressionType>
Process a line and update suppression state. Returns the suppression type for this line (if any).
Sourcepub fn is_rule_suppressed(&self, rule_id: &str, line: &str) -> bool
pub fn is_rule_suppressed(&self, rule_id: &str, line: &str) -> bool
Check if a specific rule is suppressed for the current line
Trait Implementations§
Source§impl Debug for SuppressionManager
impl Debug for SuppressionManager
Source§impl Default for SuppressionManager
impl Default for SuppressionManager
Source§fn default() -> SuppressionManager
fn default() -> SuppressionManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SuppressionManager
impl RefUnwindSafe for SuppressionManager
impl Send for SuppressionManager
impl Sync for SuppressionManager
impl Unpin for SuppressionManager
impl UnwindSafe for SuppressionManager
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