pub struct RuleSpace {
pub vars: HashMap<String, Variable>,
pub agg_memberships: HashMap<String, Vec<Float>>,
pub rules: Vec<Rule>,
}Fields§
§vars: HashMap<String, Variable>§agg_memberships: HashMap<String, Vec<Float>>§rules: Vec<Rule>Implementations§
Source§impl RuleSpace
impl RuleSpace
Sourcepub fn new(vars: HashMap<String, Variable>, rules: Vec<Rule>) -> Result<Self>
pub fn new(vars: HashMap<String, Variable>, rules: Vec<Rule>) -> Result<Self>
Create a rule space with the supplied variables and rules.
Sourcepub fn add_rules(&mut self, rules: &mut Vec<Rule>)
pub fn add_rules(&mut self, rules: &mut Vec<Rule>)
Append additional rules to the existing rule set.
Auto Trait Implementations§
impl Freeze for RuleSpace
impl !RefUnwindSafe for RuleSpace
impl Send for RuleSpace
impl Sync for RuleSpace
impl Unpin for RuleSpace
impl !UnwindSafe for RuleSpace
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