pub enum XorOutcome {
Sat(Vec<bool>),
Unsat(Vec<usize>),
}Expand description
The outcome of solving an XOR system.
Variants§
Sat(Vec<bool>)
Satisfiable, with an assignment over 0..num_vars (re-checkable via satisfies).
Unsat(Vec<usize>)
Unsatisfiable, witnessed by a subset of equation indices whose XOR is 0 = 1
(re-checkable via is_refutation).
Trait Implementations§
Source§impl Clone for XorOutcome
impl Clone for XorOutcome
Source§fn clone(&self) -> XorOutcome
fn clone(&self) -> XorOutcome
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 XorOutcome
impl Debug for XorOutcome
Source§impl PartialEq for XorOutcome
impl PartialEq for XorOutcome
Source§fn eq(&self, other: &XorOutcome) -> bool
fn eq(&self, other: &XorOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for XorOutcome
impl StructuralPartialEq for XorOutcome
Auto Trait Implementations§
impl Freeze for XorOutcome
impl RefUnwindSafe for XorOutcome
impl Send for XorOutcome
impl Sync for XorOutcome
impl Unpin for XorOutcome
impl UnsafeUnpin for XorOutcome
impl UnwindSafe for XorOutcome
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