pub struct HornClause {
pub body: Vec<usize>,
pub head: Option<usize>,
}Expand description
A Horn clause (body ⇒ head): the conjunction of the body variables implies head, or — when
head is None — implies false (a goal/integrity clause).
Fields§
§body: Vec<usize>Positive body variables (the antecedent conjunction).
head: Option<usize>The implied variable, or None for a goal clause body ⇒ false.
Implementations§
Trait Implementations§
Source§impl Clone for HornClause
impl Clone for HornClause
Source§fn clone(&self) -> HornClause
fn clone(&self) -> HornClause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HornClause
impl Debug for HornClause
Source§impl PartialEq for HornClause
impl PartialEq for HornClause
Source§fn eq(&self, other: &HornClause) -> bool
fn eq(&self, other: &HornClause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HornClause
impl StructuralPartialEq for HornClause
Auto Trait Implementations§
impl Freeze for HornClause
impl RefUnwindSafe for HornClause
impl Send for HornClause
impl Sync for HornClause
impl Unpin for HornClause
impl UnsafeUnpin for HornClause
impl UnwindSafe for HornClause
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