pub struct MetricThresholdCondition<Selection> { /* private fields */ }Expand description
Executable exact numeric threshold over one selected metric.
Implementations§
Source§impl<Selection> MetricThresholdCondition<Selection>
impl<Selection> MetricThresholdCondition<Selection>
Sourcepub const fn comparison(&self) -> MetricComparison
pub const fn comparison(&self) -> MetricComparison
Returns the exact numeric comparison.
Sourcepub const fn selection(&self) -> &Selection
pub const fn selection(&self) -> &Selection
Returns the underlying metric selection.
Trait Implementations§
Source§impl<Calculation> Checkable for MetricThresholdCondition<CustomMetricSelection<Calculation>>
impl<Calculation> Checkable for MetricThresholdCondition<CustomMetricSelection<Calculation>>
Source§fn check_with(&self, options: &CheckOptions) -> CheckResult
fn check_with(&self, options: &CheckOptions) -> CheckResult
Runs the rule with an explicit immutable options bag.
Source§fn check(&self) -> CheckResult
fn check(&self) -> CheckResult
Runs the rule with the strict, quiet defaults from
CheckOptions.Source§impl Checkable for MetricThresholdCondition<DistanceMetricSelection>
impl Checkable for MetricThresholdCondition<DistanceMetricSelection>
Source§fn check_with(&self, options: &CheckOptions) -> CheckResult
fn check_with(&self, options: &CheckOptions) -> CheckResult
Runs the rule with an explicit immutable options bag.
Source§fn check(&self) -> CheckResult
fn check(&self) -> CheckResult
Runs the rule with the strict, quiet defaults from
CheckOptions.Source§impl Checkable for MetricThresholdCondition<LcomMetricSelection>
impl Checkable for MetricThresholdCondition<LcomMetricSelection>
Source§fn check_with(&self, options: &CheckOptions) -> CheckResult
fn check_with(&self, options: &CheckOptions) -> CheckResult
Runs the rule with an explicit immutable options bag.
Source§fn check(&self) -> CheckResult
fn check(&self) -> CheckResult
Runs the rule with the strict, quiet defaults from
CheckOptions.Source§impl Checkable for MetricThresholdCondition<MetricSelection>
impl Checkable for MetricThresholdCondition<MetricSelection>
Source§fn check_with(&self, options: &CheckOptions) -> CheckResult
fn check_with(&self, options: &CheckOptions) -> CheckResult
Runs the rule with an explicit immutable options bag.
Source§fn check(&self) -> CheckResult
fn check(&self) -> CheckResult
Runs the rule with the strict, quiet defaults from
CheckOptions.Source§impl<Selection: Clone> Clone for MetricThresholdCondition<Selection>
impl<Selection: Clone> Clone for MetricThresholdCondition<Selection>
Source§fn clone(&self) -> MetricThresholdCondition<Selection>
fn clone(&self) -> MetricThresholdCondition<Selection>
Returns a copy 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 moreAuto Trait Implementations§
impl<Selection> Freeze for MetricThresholdCondition<Selection>where
Selection: Freeze,
impl<Selection> RefUnwindSafe for MetricThresholdCondition<Selection>where
Selection: RefUnwindSafe,
impl<Selection> Send for MetricThresholdCondition<Selection>where
Selection: Send,
impl<Selection> Sync for MetricThresholdCondition<Selection>where
Selection: Sync,
impl<Selection> Unpin for MetricThresholdCondition<Selection>where
Selection: Unpin,
impl<Selection> UnwindSafe for MetricThresholdCondition<Selection>where
Selection: UnwindSafe,
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