pub struct Clause {
pub literals: Vec<Literal>,
}Expand description
A clause: a disjunction of literals.
Fields§
§literals: Vec<Literal>The literals in the clause.
Implementations§
Source§impl Clause
impl Clause
Sourcepub fn is_empty_clause(&self) -> bool
pub fn is_empty_clause(&self) -> bool
Returns true if this is the empty clause (contradiction).
Sourcepub fn is_tautology(&self) -> bool
pub fn is_tautology(&self) -> bool
Returns true if the clause is a tautology (contains x and ¬x).
Trait Implementations§
impl Eq for Clause
impl StructuralPartialEq for Clause
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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