pub struct Engine;Expand description
The Engine provides convenient methods for rule execution
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn best_first_runner() -> BestFirstRuleRunner
pub fn best_first_runner() -> BestFirstRuleRunner
Get a BestFirstRuleRunner instance
Sourcepub fn chain_runner() -> ChainRuleRunner
pub fn chain_runner() -> ChainRuleRunner
Get a ChainRuleRunner instance
Sourcepub fn execute_best_first(
context: &mut RuleContext,
rules: &mut [Box<dyn Rule>],
) -> RuleResult<()>
pub fn execute_best_first( context: &mut RuleContext, rules: &mut [Box<dyn Rule>], ) -> RuleResult<()>
Execute rules using the best-first strategy
Sourcepub fn execute_chain(
context: &mut RuleContext,
rules: &mut [Box<dyn Rule>],
) -> RuleResult<()>
pub fn execute_chain( context: &mut RuleContext, rules: &mut [Box<dyn Rule>], ) -> RuleResult<()>
Execute rules using the chain strategy
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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