pub struct SuppressionTracker { /* private fields */ }Expand description
Tracks suppression state for a file being processed.
This struct manages the “ignore-next-line” state that carries over between lines.
Implementations§
Source§impl SuppressionTracker
impl SuppressionTracker
Sourcepub fn process_line(
&mut self,
line: &str,
masked_comments: &str,
) -> EffectiveSuppressions
pub fn process_line( &mut self, line: &str, masked_comments: &str, ) -> EffectiveSuppressions
Process a line and return the effective suppressions for this line.
This method:
- Parses any directive in the current line
- Applies any pending “next-line” suppressions from the previous line
- Updates the pending state for the next line
Returns the combined set of suppressions that apply to this line.
Trait Implementations§
Source§impl Clone for SuppressionTracker
impl Clone for SuppressionTracker
Source§fn clone(&self) -> SuppressionTracker
fn clone(&self) -> SuppressionTracker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuppressionTracker
impl Debug for SuppressionTracker
Source§impl Default for SuppressionTracker
impl Default for SuppressionTracker
Source§fn default() -> SuppressionTracker
fn default() -> SuppressionTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SuppressionTracker
impl RefUnwindSafe for SuppressionTracker
impl Send for SuppressionTracker
impl Sync for SuppressionTracker
impl Unpin for SuppressionTracker
impl UnsafeUnpin for SuppressionTracker
impl UnwindSafe for SuppressionTracker
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