pub struct MetricPredicateCondition<Selection, Predicate> { /* private fields */ }Expand description
Executable arbitrary predicate over one selected built-in metric.
Implementations§
Source§impl<Selection, Predicate> MetricPredicateCondition<Selection, Predicate>
impl<Selection, Predicate> MetricPredicateCondition<Selection, Predicate>
Sourcepub const fn selection(&self) -> &Selection
pub const fn selection(&self) -> &Selection
Returns the underlying metric selection.
Trait Implementations§
Source§impl<Predicate> Checkable for MetricPredicateCondition<DistanceMetricSelection, Predicate>
impl<Predicate> Checkable for MetricPredicateCondition<DistanceMetricSelection, 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<Predicate> Checkable for MetricPredicateCondition<LcomMetricSelection, Predicate>
impl<Predicate> Checkable for MetricPredicateCondition<LcomMetricSelection, 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<Predicate> Checkable for MetricPredicateCondition<MetricSelection, Predicate>
impl<Predicate> Checkable for MetricPredicateCondition<MetricSelection, 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<Selection: Clone, Predicate: Clone> Clone for MetricPredicateCondition<Selection, Predicate>
impl<Selection: Clone, Predicate: Clone> Clone for MetricPredicateCondition<Selection, Predicate>
Source§fn clone(&self) -> MetricPredicateCondition<Selection, Predicate>
fn clone(&self) -> MetricPredicateCondition<Selection, 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<Selection, Predicate> Freeze for MetricPredicateCondition<Selection, Predicate>
impl<Selection, Predicate> RefUnwindSafe for MetricPredicateCondition<Selection, Predicate>where
Selection: RefUnwindSafe,
Predicate: RefUnwindSafe,
impl<Selection, Predicate> Send for MetricPredicateCondition<Selection, Predicate>
impl<Selection, Predicate> Sync for MetricPredicateCondition<Selection, Predicate>
impl<Selection, Predicate> Unpin for MetricPredicateCondition<Selection, Predicate>
impl<Selection, Predicate> UnwindSafe for MetricPredicateCondition<Selection, Predicate>where
Selection: UnwindSafe,
Predicate: 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