pub enum GlobalConstraintType {
AllDifferent,
Cumulative,
Element,
Cardinality,
Regular,
}Expand description
Global constraint types (high-level patterns).
Variants§
AllDifferent
All variables must have different values
Cumulative
Cumulative resource constraint (scheduling)
Element
Element constraint: arr[index] = value
Cardinality
Cardinality constraint: count occurrences
Regular
Regular expression constraint
Trait Implementations§
Source§impl Clone for GlobalConstraintType
impl Clone for GlobalConstraintType
Source§fn clone(&self) -> GlobalConstraintType
fn clone(&self) -> GlobalConstraintType
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 GlobalConstraintType
impl Debug for GlobalConstraintType
Source§impl<'de> Deserialize<'de> for GlobalConstraintType
impl<'de> Deserialize<'de> for GlobalConstraintType
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 GlobalConstraintType
impl PartialEq for GlobalConstraintType
Source§impl Serialize for GlobalConstraintType
impl Serialize for GlobalConstraintType
impl Eq for GlobalConstraintType
impl StructuralPartialEq for GlobalConstraintType
Auto Trait Implementations§
impl Freeze for GlobalConstraintType
impl RefUnwindSafe for GlobalConstraintType
impl Send for GlobalConstraintType
impl Sync for GlobalConstraintType
impl Unpin for GlobalConstraintType
impl UnwindSafe for GlobalConstraintType
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