pub trait ClauseIF {
// Required methods
fn is_empty(&self) -> bool;
fn is_dead(&self) -> bool;
fn lit0(&self) -> Lit;
fn lit1(&self) -> Lit;
fn contains(&self, lit: Lit) -> bool;
fn is_satisfied_under(&self, asg: &impl AssignIF) -> bool;
fn iter(&self) -> Iter<'_, Lit>;
fn len(&self) -> usize;
}
Expand description
API for Clause, providing literal accessors.
Required Methods§
sourcefn is_empty(&self) -> bool
fn is_empty(&self) -> bool
return true if it contains no literals; a clause after unit propagation.
sourcefn is_dead(&self) -> bool
fn is_dead(&self) -> bool
return true if it contains no literals; a clause after unit propagation.
sourcefn is_satisfied_under(&self, asg: &impl AssignIF) -> bool
fn is_satisfied_under(&self, asg: &impl AssignIF) -> bool
check clause satisfiability
Object Safety§
This trait is not object safe.