pub struct RuleEngine<'a> {
pub knowledge: HashMap<String, String>,
pub rules: Vec<Rule<'a>>,
}Expand description
Defines an engine used to evaluate and execute rules.
Fields§
§knowledge: HashMap<String, String>§rules: Vec<Rule<'a>>Implementations§
Source§impl RuleEngine<'_>
impl RuleEngine<'_>
Auto Trait Implementations§
impl<'a> Freeze for RuleEngine<'a>
impl<'a> !RefUnwindSafe for RuleEngine<'a>
impl<'a> !Send for RuleEngine<'a>
impl<'a> !Sync for RuleEngine<'a>
impl<'a> Unpin for RuleEngine<'a>
impl<'a> !UnwindSafe for RuleEngine<'a>
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