Struct dimacs::Lit
[−]
[src]
pub struct Lit(_);
Represents a literal within clauses of formulas of a SAT instance.
Methods
impl Lit
[src]
fn from_i64(val: i64) -> Lit
Returns the underlying i64
representant of this literal.
fn var(self) -> Var
Returns the associated variable for this literal.
fn sign(self) -> Sign
Returns the sign of this literal.
Trait Implementations
impl Copy for Lit
[src]
impl Clone for Lit
[src]
fn clone(&self) -> Lit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Lit
[src]
impl PartialEq for Lit
[src]
fn eq(&self, __arg_0: &Lit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Lit) -> bool
This method tests for !=
.