pub struct SuppressionMarker {
pub line: usize,
pub target: SuppressionTarget,
pub scope: SuppressionScope,
pub dialect: SuppressionDialect,
pub function: Option<String>,
}Expand description
A single in-source suppression marker located within a file, carrying the context needed to audit it.
Produced by crate::Ast::suppressions for the bca exemptions
report (issue #386). Unlike the
merged crate::FuncSpace::suppressed scope — which records only
what a function ends up suppressing — this records each marker’s
own location, dialect, and the enclosing function it was written in,
so reviewers can see every silencer in the tree, not just its net
effect.
Fields§
§line: usize1-based line of the comment that carries the marker.
target: SuppressionTargetWhether the marker is function- or file-scoped.
scope: SuppressionScopeWhich metrics the marker covers (all or a named set).
dialect: SuppressionDialectNative vs Lizard dialect.
function: Option<String>Enclosing function name for a function-scoped marker, if the
marker sits inside a function body. None for file-scoped
markers (whole-file by definition) and for function-scoped
markers written outside any function (which silence nothing — a
dead marker worth surfacing in an audit).
Trait Implementations§
Source§impl Clone for SuppressionMarker
impl Clone for SuppressionMarker
Source§fn clone(&self) -> SuppressionMarker
fn clone(&self) -> SuppressionMarker
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SuppressionMarker
impl Debug for SuppressionMarker
impl Eq for SuppressionMarker
Source§impl PartialEq for SuppressionMarker
impl PartialEq for SuppressionMarker
Source§fn eq(&self, other: &SuppressionMarker) -> bool
fn eq(&self, other: &SuppressionMarker) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SuppressionMarker
impl Serialize for SuppressionMarker
impl StructuralPartialEq for SuppressionMarker
Auto Trait Implementations§
impl Freeze for SuppressionMarker
impl RefUnwindSafe for SuppressionMarker
impl Send for SuppressionMarker
impl Sync for SuppressionMarker
impl Unpin for SuppressionMarker
impl UnsafeUnpin for SuppressionMarker
impl UnwindSafe for SuppressionMarker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.