pub struct Rule {
pub priority: f64,
pub premises: Vec<Premise>,
pub then_actions: Vec<RuleAction>,
pub else_actions: Vec<RuleAction>,
}Expand description
A rule-based control (§2.8.2).
Fields§
§priority: f64Numeric priority; lower value wins when rules conflict.
premises: Vec<Premise>Ordered list of predicate clauses forming the rule condition.
then_actions: Vec<RuleAction>Actions applied when the rule condition evaluates to true.
else_actions: Vec<RuleAction>Actions applied when the rule condition evaluates to false.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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