pub struct Rule {
pub head: Atom,
pub body: Vec<Atom>,
}Expand description
A Datalog rule: head :- body[0], body[1], ….
If body is empty, the rule is a fact (unconditional assertion).
Fields§
§head: AtomThe head atom (conclusion).
body: Vec<Atom>The body atoms (premises), conjoined.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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