pub struct ThresholdOverride {
pub pattern: String,
pub threshold: f64,
}Expand description
A glob-based threshold override for a specific path pattern.
Fields§
§pattern: StringGlob pattern matched against project-relative file paths (e.g. domain/**).
threshold: f64CRAP threshold for functions in files matching this pattern.
Trait Implementations§
Source§impl Clone for ThresholdOverride
impl Clone for ThresholdOverride
Source§fn clone(&self) -> ThresholdOverride
fn clone(&self) -> ThresholdOverride
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 moreSource§impl Debug for ThresholdOverride
impl Debug for ThresholdOverride
Source§impl PartialEq for ThresholdOverride
impl PartialEq for ThresholdOverride
Source§fn eq(&self, other: &ThresholdOverride) -> bool
fn eq(&self, other: &ThresholdOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThresholdOverride
Auto Trait Implementations§
impl Freeze for ThresholdOverride
impl RefUnwindSafe for ThresholdOverride
impl Send for ThresholdOverride
impl Sync for ThresholdOverride
impl Unpin for ThresholdOverride
impl UnsafeUnpin for ThresholdOverride
impl UnwindSafe for ThresholdOverride
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