pub struct ParallelRuleEngine { /* private fields */ }Expand description
Parallel rule execution engine
Implementations§
Source§impl ParallelRuleEngine
impl ParallelRuleEngine
Sourcepub fn new(config: ParallelConfig) -> Self
pub fn new(config: ParallelConfig) -> Self
Create new parallel rule engine
Sourcepub fn register_function<F>(&mut self, name: &str, func: F)
pub fn register_function<F>(&mut self, name: &str, func: F)
Register a custom function
Sourcepub fn execute_parallel(
&self,
knowledge_base: &KnowledgeBase,
facts: &Facts,
debug_mode: bool,
) -> Result<ParallelExecutionResult>
pub fn execute_parallel( &self, knowledge_base: &KnowledgeBase, facts: &Facts, debug_mode: bool, ) -> Result<ParallelExecutionResult>
Execute rules with parallel processing
Auto Trait Implementations§
impl Freeze for ParallelRuleEngine
impl RefUnwindSafe for ParallelRuleEngine
impl Send for ParallelRuleEngine
impl Sync for ParallelRuleEngine
impl Unpin for ParallelRuleEngine
impl UnwindSafe for ParallelRuleEngine
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