pub struct ActivationGroupManager { /* private fields */ }Expand description
Manages activation groups for mutually exclusive rule execution
Implementations§
Source§impl ActivationGroupManager
impl ActivationGroupManager
Sourcepub fn can_fire(&self, rule: &Rule) -> bool
pub fn can_fire(&self, rule: &Rule) -> bool
Check if a rule can fire based on activation group constraints
Sourcepub fn mark_fired(&mut self, rule: &Rule)
pub fn mark_fired(&mut self, rule: &Rule)
Mark that a rule has fired, preventing other rules in same activation group
Sourcepub fn reset_cycle(&mut self)
pub fn reset_cycle(&mut self)
Reset for new execution cycle
Sourcepub fn get_activation_groups(&self, rules: &[Rule]) -> Vec<String>
pub fn get_activation_groups(&self, rules: &[Rule]) -> Vec<String>
Get all activation groups
Sourcepub fn has_group_fired(&self, group: &str) -> bool
pub fn has_group_fired(&self, group: &str) -> bool
Check if any rule in an activation group has fired
Trait Implementations§
Source§impl Clone for ActivationGroupManager
impl Clone for ActivationGroupManager
Source§fn clone(&self) -> ActivationGroupManager
fn clone(&self) -> ActivationGroupManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivationGroupManager
impl Debug for ActivationGroupManager
Auto Trait Implementations§
impl Freeze for ActivationGroupManager
impl RefUnwindSafe for ActivationGroupManager
impl Send for ActivationGroupManager
impl Sync for ActivationGroupManager
impl Unpin for ActivationGroupManager
impl UnwindSafe for ActivationGroupManager
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