pub struct CustomMetricCondition<Calculation, Predicate> { /* private fields */ }Expand description
Executable user-defined metric predicate over selected Rust types.
Implementations§
Source§impl<Calculation, Predicate> CustomMetricCondition<Calculation, Predicate>
impl<Calculation, Predicate> CustomMetricCondition<Calculation, Predicate>
Sourcepub fn metric_name(&self) -> &str
pub fn metric_name(&self) -> &str
Returns the custom metric name.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the custom metric description.
Trait Implementations§
Source§impl<Calculation, Predicate> Checkable for CustomMetricCondition<Calculation, Predicate>
impl<Calculation, Predicate> Checkable for CustomMetricCondition<Calculation, Predicate>
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<Calculation: Clone, Predicate: Clone> Clone for CustomMetricCondition<Calculation, Predicate>
impl<Calculation: Clone, Predicate: Clone> Clone for CustomMetricCondition<Calculation, Predicate>
Source§fn clone(&self) -> CustomMetricCondition<Calculation, Predicate>
fn clone(&self) -> CustomMetricCondition<Calculation, Predicate>
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<Calculation, Predicate> Freeze for CustomMetricCondition<Calculation, Predicate>
impl<Calculation, Predicate> RefUnwindSafe for CustomMetricCondition<Calculation, Predicate>where
Predicate: RefUnwindSafe,
Calculation: RefUnwindSafe,
impl<Calculation, Predicate> Send for CustomMetricCondition<Calculation, Predicate>
impl<Calculation, Predicate> Sync for CustomMetricCondition<Calculation, Predicate>
impl<Calculation, Predicate> Unpin for CustomMetricCondition<Calculation, Predicate>
impl<Calculation, Predicate> UnwindSafe for CustomMetricCondition<Calculation, Predicate>where
Predicate: UnwindSafe,
Calculation: 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