pub enum NAryRelation {
AllDifferent,
SumEquals(i64),
SumLessThan(i64),
LinearEquation {
coefficients: Vec<i64>,
constant: i64,
},
}Expand description
N-ary relation among multiple variables.
Variants§
AllDifferent
All variables have different values
SumEquals(i64)
Sum of variables equals constant: Σx_i = c
SumLessThan(i64)
Sum of variables less than constant: Σx_i < c
LinearEquation
Linear equation: Σ(a_i * x_i) = c
Trait Implementations§
Source§impl Clone for NAryRelation
impl Clone for NAryRelation
Source§fn clone(&self) -> NAryRelation
fn clone(&self) -> NAryRelation
Returns a duplicate 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 NAryRelation
impl Debug for NAryRelation
Source§impl<'de> Deserialize<'de> for NAryRelation
impl<'de> Deserialize<'de> for NAryRelation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NAryRelation
impl PartialEq for NAryRelation
Source§impl Serialize for NAryRelation
impl Serialize for NAryRelation
impl Eq for NAryRelation
impl StructuralPartialEq for NAryRelation
Auto Trait Implementations§
impl Freeze for NAryRelation
impl RefUnwindSafe for NAryRelation
impl Send for NAryRelation
impl Sync for NAryRelation
impl Unpin for NAryRelation
impl UnwindSafe for NAryRelation
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