pub enum SuppressionTarget {
Function,
File,
}Expand description
Whether an audited suppression marker applies to its enclosing function or to the whole file.
The public mirror of the crate-internal SuppressionKind; exposed
on SuppressionMarker so the bca exemptions audit (issue #386)
can report marker scope without leaking the internal type.
Variants§
Function
Marker silences thresholds for its enclosing function only.
File
Marker silences thresholds for the whole file.
Trait Implementations§
Source§impl Clone for SuppressionTarget
impl Clone for SuppressionTarget
Source§fn clone(&self) -> SuppressionTarget
fn clone(&self) -> SuppressionTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SuppressionTarget
Source§impl Debug for SuppressionTarget
impl Debug for SuppressionTarget
impl Eq for SuppressionTarget
Source§impl PartialEq for SuppressionTarget
impl PartialEq for SuppressionTarget
Source§fn eq(&self, other: &SuppressionTarget) -> bool
fn eq(&self, other: &SuppressionTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SuppressionTarget
impl Serialize for SuppressionTarget
impl StructuralPartialEq for SuppressionTarget
Auto Trait Implementations§
impl Freeze for SuppressionTarget
impl RefUnwindSafe for SuppressionTarget
impl Send for SuppressionTarget
impl Sync for SuppressionTarget
impl Unpin for SuppressionTarget
impl UnsafeUnpin for SuppressionTarget
impl UnwindSafe for SuppressionTarget
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> 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
Compare self to
key and return true if they are equal.