pub struct PatternMatcher;Expand description
Pattern matching evaluator for advanced condition types
Implementations§
Source§impl PatternMatcher
impl PatternMatcher
Sourcepub fn evaluate_exists(condition: &ConditionGroup, facts: &Facts) -> bool
pub fn evaluate_exists(condition: &ConditionGroup, facts: &Facts) -> bool
Evaluate EXISTS condition - checks if at least one fact matches the condition
Sourcepub fn evaluate_not(condition: &ConditionGroup, facts: &Facts) -> bool
pub fn evaluate_not(condition: &ConditionGroup, facts: &Facts) -> bool
Evaluate NOT condition - checks if no facts match the condition
Sourcepub fn evaluate_forall(condition: &ConditionGroup, facts: &Facts) -> bool
pub fn evaluate_forall(condition: &ConditionGroup, facts: &Facts) -> bool
Evaluate FORALL condition - checks if all facts of target type match the condition
Auto Trait Implementations§
impl Freeze for PatternMatcher
impl RefUnwindSafe for PatternMatcher
impl Send for PatternMatcher
impl Sync for PatternMatcher
impl Unpin for PatternMatcher
impl UnwindSafe for PatternMatcher
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