pub struct Suppression {
pub kind: SuppressionKind,
pub rule_ids: Option<HashSet<String>>,
}Expand description
A parsed suppression directive.
Fields§
§kind: SuppressionKindThe kind of suppression (same line or next line).
rule_ids: Option<HashSet<String>>The rule IDs to suppress, or None for wildcard (suppress all). When None, all rules are suppressed.
Implementations§
Source§impl Suppression
impl Suppression
Sourcepub fn suppresses(&self, rule_id: &str) -> bool
pub fn suppresses(&self, rule_id: &str) -> bool
Returns true if this suppression applies to the given rule ID.
Sourcepub fn is_wildcard(&self) -> bool
pub fn is_wildcard(&self) -> bool
Returns true if this is a wildcard suppression (suppresses all rules).
Trait Implementations§
Source§impl Clone for Suppression
impl Clone for Suppression
Source§fn clone(&self) -> Suppression
fn clone(&self) -> Suppression
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 Suppression
impl Debug for Suppression
Source§impl PartialEq for Suppression
impl PartialEq for Suppression
impl Eq for Suppression
impl StructuralPartialEq for Suppression
Auto Trait Implementations§
impl Freeze for Suppression
impl RefUnwindSafe for Suppression
impl Send for Suppression
impl Sync for Suppression
impl Unpin for Suppression
impl UnsafeUnpin for Suppression
impl UnwindSafe for Suppression
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