pub enum TwoSatOutcome {
Sat(Vec<bool>),
Unsat(usize),
}Expand description
The outcome of solving a 2-SAT instance.
Variants§
Sat(Vec<bool>)
Satisfiable, with an assignment over 0..num_vars (re-checkable via satisfies).
Unsat(usize)
Unsatisfiable: the variable forced both true and false (x and ¬x in one SCC). Its mutual
implication is re-checkable via is_refutation.
Trait Implementations§
Source§impl Clone for TwoSatOutcome
impl Clone for TwoSatOutcome
Source§fn clone(&self) -> TwoSatOutcome
fn clone(&self) -> TwoSatOutcome
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 TwoSatOutcome
impl Debug for TwoSatOutcome
Source§impl PartialEq for TwoSatOutcome
impl PartialEq for TwoSatOutcome
Source§fn eq(&self, other: &TwoSatOutcome) -> bool
fn eq(&self, other: &TwoSatOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TwoSatOutcome
impl StructuralPartialEq for TwoSatOutcome
Auto Trait Implementations§
impl Freeze for TwoSatOutcome
impl RefUnwindSafe for TwoSatOutcome
impl Send for TwoSatOutcome
impl Sync for TwoSatOutcome
impl Unpin for TwoSatOutcome
impl UnsafeUnpin for TwoSatOutcome
impl UnwindSafe for TwoSatOutcome
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