pub struct Clause {
pub literals: Vec<Literal>,
}Expand description
A clause (disjunction of literals)
Fields§
§literals: Vec<Literal>Literals in the clause
Implementations§
Source§impl Clause
impl Clause
Sourcepub fn unit_literal(&self) -> Option<Literal>
pub fn unit_literal(&self) -> Option<Literal>
Get the unit literal (if this is a unit clause)
Sourcepub fn is_tautology(&self) -> bool
pub fn is_tautology(&self) -> bool
Check if the clause is a tautology
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