Enum dsntk_model::HitPolicy
source · pub enum HitPolicy {
Unique,
Any,
Priority,
First,
Collect(BuiltinAggregator),
OutputOrder,
RuleOrder,
}Expand description
Hit policy.
Variants§
Unique
UNIQUE hit policy. No overlapping rules are allowed, only single rule can be matched.
This is the default value for hit policy. Crosstab decision tables may have only unique hit policy.
Any
ANY hit policy. Rules may overlap, but all matching rules show equal output entries.
If matching rules have non-equal output entries, this policy is incorrect and the result is undefined.
Priority
PRIORITY hit policy. Multiple rules can match, with different output entries for each output.
This policy returns matching rule with the highest priority. Output priorities are specified
in the ordered list of output values, in decreasing order of priority.
First
FIRST hit policy…
Collect(BuiltinAggregator)
COLLECT hit policy…
OutputOrder
OUTPUT ORDER hit policy…
RuleOrder
RULE ORDER hit policy…
Trait Implementations§
source§impl From<HitPolicy> for HitPolicy
impl From<HitPolicy> for HitPolicy
source§fn from(value: RecognizedHitPolicy) -> Self
fn from(value: RecognizedHitPolicy) -> Self
Converts to this type from the input type.
impl Copy for HitPolicy
impl Eq for HitPolicy
impl StructuralPartialEq for HitPolicy
Auto Trait Implementations§
impl Freeze for HitPolicy
impl RefUnwindSafe for HitPolicy
impl Send for HitPolicy
impl Sync for HitPolicy
impl Unpin for HitPolicy
impl UnwindSafe for HitPolicy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.