pub struct RuleSpace {
pub vars: HashMap<String, Variable>,
pub myu: HashMap<String, Vec<Float>>,
pub rules: Vec<Rule>,
}Fields§
§vars: HashMap<String, Variable>§myu: HashMap<String, Vec<Float>>§rules: Vec<Rule>Implementations§
Source§impl RuleSpace
impl RuleSpace
Sourcepub fn new(self, vars: HashMap<String, Variable>, rules: Vec<Rule>) -> Self
pub fn new(self, vars: HashMap<String, Variable>, rules: Vec<Rule>) -> Self
Create a rule space with the supplied variables and rules.
Sourcepub fn add_rules(self, rules: &mut Vec<Rule>)
pub fn add_rules(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