pub struct Rule {
pub conditions: Vec<Condition>,
pub effects: Vec<Effect>,
}Expand description
A sketch rule C ↦ E (Bonet & Geffner): from a state that satisfies
every condition in C, any state whose feature values changed as E
says is a subgoal.
Fields§
§conditions: Vec<Condition>Conditions on the start state; all must hold. Empty means always.
effects: Vec<Effect>Allowed changes. Features not mentioned here must stay the same; a feature mentioned twice must satisfy both effects.
Trait Implementations§
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Forget for Rule
impl Freeze for Rule
impl Move for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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