pub enum ModpOutcome {
Sat(Vec<u64>),
Unsat(Vec<(usize, u64)>),
}Expand description
The outcome of solving a mod-p linear system.
Variants§
Sat(Vec<u64>)
Satisfiable, with an assignment over 0..p for each of 0..num_vars (re-checkable via
satisfies).
Unsat(Vec<(usize, u64)>)
Unsatisfiable, witnessed by a combination Σ (multiplier · equationᵢ) whose left side cancels
while the right side is nonzero — re-checkable via is_refutation.
Trait Implementations§
Source§impl Clone for ModpOutcome
impl Clone for ModpOutcome
Source§fn clone(&self) -> ModpOutcome
fn clone(&self) -> ModpOutcome
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 ModpOutcome
impl Debug for ModpOutcome
Source§impl PartialEq for ModpOutcome
impl PartialEq for ModpOutcome
Source§fn eq(&self, other: &ModpOutcome) -> bool
fn eq(&self, other: &ModpOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModpOutcome
impl StructuralPartialEq for ModpOutcome
Auto Trait Implementations§
impl Freeze for ModpOutcome
impl RefUnwindSafe for ModpOutcome
impl Send for ModpOutcome
impl Sync for ModpOutcome
impl Unpin for ModpOutcome
impl UnsafeUnpin for ModpOutcome
impl UnwindSafe for ModpOutcome
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