pub struct ConditionEvaluator { /* private fields */ }Expand description
Shared condition evaluator that works for both forward and backward chaining
Implementations§
Source§impl ConditionEvaluator
impl ConditionEvaluator
Sourcepub fn with_custom_functions(
custom_functions: HashMap<String, CustomFunction>,
) -> Self
pub fn with_custom_functions( custom_functions: HashMap<String, CustomFunction>, ) -> Self
Create new evaluator with custom functions (for forward chaining)
Sourcepub fn with_builtin_functions() -> Self
pub fn with_builtin_functions() -> Self
Create new evaluator with built-in functions (for backward chaining)
Sourcepub fn evaluate_conditions(
&self,
group: &ConditionGroup,
facts: &Facts,
) -> Result<bool>
pub fn evaluate_conditions( &self, group: &ConditionGroup, facts: &Facts, ) -> Result<bool>
Evaluate condition group
Auto Trait Implementations§
impl Freeze for ConditionEvaluator
impl !RefUnwindSafe for ConditionEvaluator
impl Send for ConditionEvaluator
impl Sync for ConditionEvaluator
impl Unpin for ConditionEvaluator
impl !UnwindSafe for ConditionEvaluator
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