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 PartialEq for HitPolicy
impl PartialEq for HitPolicy
impl Copy for HitPolicy
impl Eq for HitPolicy
impl StructuralEq for HitPolicy
impl StructuralPartialEq for HitPolicy
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.