pub struct RuleOutcomes(/* private fields */);Expand description
The outcomes of every rule completed so far in a run, by compiled rule
id. The runtime installs it before every rule, replacing any host copy,
so a ruleOutcome selector reads the rules the plan ran first.
Implementations§
Source§impl RuleOutcomes
impl RuleOutcomes
Sourcepub fn get(&self, rule: &str) -> Option<&RuleRecord>
pub fn get(&self, rule: &str) -> Option<&RuleRecord>
The record of the completed rule rule, if it ran before.
Sourcepub fn selects(
&self,
rule: &str,
outcome: RuleOutcomeKind,
object: &Object,
) -> Result<bool, (NotEvaluatedReason, String)>
pub fn selects( &self, rule: &str, outcome: RuleOutcomeKind, object: &Object, ) -> Result<bool, (NotEvaluatedReason, String)>
Whether rule judged object as outcome asks, for a
ruleOutcome selector; Err with a reason when that cannot be
decided.
Trait Implementations§
Source§impl Clone for RuleOutcomes
impl Clone for RuleOutcomes
Source§impl Debug for RuleOutcomes
impl Debug for RuleOutcomes
Auto Trait Implementations§
impl Freeze for RuleOutcomes
impl RefUnwindSafe for RuleOutcomes
impl Send for RuleOutcomes
impl Sync for RuleOutcomes
impl Unpin for RuleOutcomes
impl UnsafeUnpin for RuleOutcomes
impl UnwindSafe for RuleOutcomes
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