#[non_exhaustive]pub enum Constraint {
Show 75 variants
Difference(TwoVars, Var),
Div(TwoVars, Var),
DivUndefZero(TwoVars, Var),
Modulo(TwoVars, Var),
ModuloUndefZero(TwoVars, Var),
Pow(TwoVars, Var),
Product(TwoVars, Var),
WeightedSumGeq(Vec<Constant>, Vec<Var>, Var),
WeightedSumLeq(Vec<Constant>, Vec<Var>, Var),
CheckAssign(Box<Constraint>),
CheckGsa(Box<Constraint>),
ForwardChecking(Box<Constraint>),
Reify(Box<Constraint>, Var),
ReifyImply(Box<Constraint>, Var),
ReifyImplyQuick(Box<Constraint>, Var),
WatchedAnd(Vec<Constraint>),
WatchedOr(Vec<Constraint>),
GacAllDiff(Vec<Var>),
AllDiff(Vec<Var>),
AllDiffMatrix(Vec<Var>, Constant),
WatchSumGeq(Vec<Var>, Constant),
WatchSumLeq(Vec<Var>, Constant),
OccurrenceGeq(Vec<Var>, Constant, Constant),
OccurrenceLeq(Vec<Var>, Constant, Constant),
Occurrence(Vec<Var>, Constant, Var),
LitSumGeq(Vec<Var>, Vec<Constant>, Constant),
Gcc(Vec<Var>, Vec<Constant>, Vec<Var>),
GccWeak(Vec<Var>, Vec<Constant>, Vec<Var>),
LexLeqRv(Vec<Var>, Vec<Var>),
LexLeq(Vec<Var>, Vec<Var>),
LexLess(Vec<Var>, Vec<Var>),
LexLeqQuick(Vec<Var>, Vec<Var>),
LexLessQuick(Vec<Var>, Vec<Var>),
WatchVecNeq(Vec<Var>, Vec<Var>),
WatchVecExistsLess(Vec<Var>, Vec<Var>),
Hamming(Vec<Var>, Vec<Var>, Constant),
NotHamming(Vec<Var>, Vec<Var>, Constant),
FrameUpdate(Vec<Var>, Vec<Var>, Vec<Var>, Vec<Var>, Constant),
NegativeTable(Vec<Var>, Vec<Tuple>),
Table(Vec<Var>, Vec<Tuple>),
GacSchema(Vec<Var>, Vec<Tuple>),
LightTable(Vec<Var>, Vec<Tuple>),
Mddc(Vec<Var>, Vec<Tuple>),
NegativeMddc(Vec<Var>, Vec<Tuple>),
Str2Plus(Vec<Var>, Var),
Max(Vec<Var>, Var),
Min(Vec<Var>, Var),
NvalueGeq(Vec<Var>, Var),
NvalueLeq(Vec<Var>, Var),
SumLeq(Vec<Var>, Var),
SumGeq(Vec<Var>, Var),
Element(Vec<Var>, Var, Var),
ElementOne(Vec<Var>, Var, Var),
ElementUndefZero(Vec<Var>, Var, Var),
WatchElement(Vec<Var>, Var, Var),
WatchElementOne(Vec<Var>, Var, Var),
WatchElementOneUndefZero(Vec<Var>, Var, Var),
WatchElementUndefZero(Vec<Var>, Var, Var),
WLiteral(Var, Constant),
WNotLiteral(Var, Constant),
WInIntervalSet(Var, Vec<Constant>),
WInRange(Var, Vec<Constant>),
WInset(Var, Vec<Constant>),
WNotInRange(Var, Vec<Constant>),
WNotInset(Var, Vec<Constant>),
Abs(Var, Var),
DisEq(Var, Var),
Eq(Var, Var),
MinusEq(Var, Var),
GacEq(Var, Var),
WatchLess(Var, Var),
WatchNeq(Var, Var),
Ineq(Var, Var, Constant),
False,
True,
}
Expand description
All supported Minion constraints.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Difference(TwoVars, Var)
Div(TwoVars, Var)
DivUndefZero(TwoVars, Var)
Modulo(TwoVars, Var)
ModuloUndefZero(TwoVars, Var)
Pow(TwoVars, Var)
Product(TwoVars, Var)
WeightedSumGeq(Vec<Constant>, Vec<Var>, Var)
WeightedSumLeq(Vec<Constant>, Vec<Var>, Var)
CheckAssign(Box<Constraint>)
CheckGsa(Box<Constraint>)
ForwardChecking(Box<Constraint>)
Reify(Box<Constraint>, Var)
ReifyImply(Box<Constraint>, Var)
ReifyImplyQuick(Box<Constraint>, Var)
WatchedAnd(Vec<Constraint>)
WatchedOr(Vec<Constraint>)
GacAllDiff(Vec<Var>)
AllDiff(Vec<Var>)
AllDiffMatrix(Vec<Var>, Constant)
WatchSumGeq(Vec<Var>, Constant)
WatchSumLeq(Vec<Var>, Constant)
OccurrenceGeq(Vec<Var>, Constant, Constant)
OccurrenceLeq(Vec<Var>, Constant, Constant)
Occurrence(Vec<Var>, Constant, Var)
LitSumGeq(Vec<Var>, Vec<Constant>, Constant)
Gcc(Vec<Var>, Vec<Constant>, Vec<Var>)
GccWeak(Vec<Var>, Vec<Constant>, Vec<Var>)
LexLeqRv(Vec<Var>, Vec<Var>)
LexLeq(Vec<Var>, Vec<Var>)
LexLess(Vec<Var>, Vec<Var>)
LexLeqQuick(Vec<Var>, Vec<Var>)
LexLessQuick(Vec<Var>, Vec<Var>)
WatchVecNeq(Vec<Var>, Vec<Var>)
WatchVecExistsLess(Vec<Var>, Vec<Var>)
Hamming(Vec<Var>, Vec<Var>, Constant)
NotHamming(Vec<Var>, Vec<Var>, Constant)
FrameUpdate(Vec<Var>, Vec<Var>, Vec<Var>, Vec<Var>, Constant)
NegativeTable(Vec<Var>, Vec<Tuple>)
Table(Vec<Var>, Vec<Tuple>)
GacSchema(Vec<Var>, Vec<Tuple>)
LightTable(Vec<Var>, Vec<Tuple>)
Mddc(Vec<Var>, Vec<Tuple>)
NegativeMddc(Vec<Var>, Vec<Tuple>)
Str2Plus(Vec<Var>, Var)
Max(Vec<Var>, Var)
Min(Vec<Var>, Var)
NvalueGeq(Vec<Var>, Var)
NvalueLeq(Vec<Var>, Var)
SumLeq(Vec<Var>, Var)
SumGeq(Vec<Var>, Var)
Element(Vec<Var>, Var, Var)
ElementOne(Vec<Var>, Var, Var)
ElementUndefZero(Vec<Var>, Var, Var)
WatchElement(Vec<Var>, Var, Var)
WatchElementOne(Vec<Var>, Var, Var)
WatchElementOneUndefZero(Vec<Var>, Var, Var)
WatchElementUndefZero(Vec<Var>, Var, Var)
WLiteral(Var, Constant)
WNotLiteral(Var, Constant)
WInIntervalSet(Var, Vec<Constant>)
WInRange(Var, Vec<Constant>)
WInset(Var, Vec<Constant>)
WNotInRange(Var, Vec<Constant>)
WNotInset(Var, Vec<Constant>)
Abs(Var, Var)
DisEq(Var, Var)
Eq(Var, Var)
MinusEq(Var, Var)
GacEq(Var, Var)
WatchLess(Var, Var)
WatchNeq(Var, Var)
Ineq(Var, Var, Constant)
False
True
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
Returns a copy of the value. Read more
1.0.0 · 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 Constraint
impl Debug for Constraint
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
impl Eq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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