Struct XConstraintSet

Source
pub struct XConstraintSet<'a> { /* private fields */ }
Expand description

the XConstraintSet is a container that stores all constraints.

Implementations§

Source§

impl<'a> XConstraintSet<'a>

Source

pub fn new(set: &'a XVariableSet) -> XConstraintSet<'a>

Source

pub fn build_no_overlap_k_dim( &mut self, list: &str, lengths_str: &str, zero_ignored_str: &str, )

Source

pub fn build_no_overlap( &mut self, list: &str, lengths_str: &str, zero_ignored_str: &str, )

Source

pub fn build_cumulative( &mut self, origins_str: &str, lengths_str: &str, heights_str: &str, condition_str: &str, ends_str: &str, machines_str: &str, start_index_str: &str, )

Source

pub fn build_channel( &mut self, list: &str, start_index_str: &str, value_str: &str, )

Source

pub fn build_cardinality( &mut self, list: &str, values_str: &str, occurs_str: &str, closed_str: &str, )

Source

pub fn build_stretch( &mut self, list: &str, value_str: &str, widths_str: &str, patterns_str: &str, )

Source

pub fn build_element( &mut self, vars: &str, values_str: &str, index_str: &str, start_index_str: &str, )

Source

pub fn build_slide( &mut self, cc: XConstraintType<'a>, vars: &str, offset_str: &str, circular_str: &str, )

Source

pub fn build_group(&mut self, cc: XConstraintType<'a>, args: &[String])

Source

pub fn get_last_constraint(&mut self) -> Option<XConstraintType<'a>>

this function is designed for XGroup, parse the template for XGroup

Source

pub fn iter(&self) -> Iter<'_, XConstraintType<'_>>

Source

pub fn iter_mut(&mut self) -> IterMut<'_, XConstraintType<'a>>

Source

pub fn build_minimum(&mut self, vars: &str, condition: &str)

Source

pub fn build_maximum(&mut self, vars: &str, condition: &str)

Source

pub fn build_count(&mut self, vars: &str, condition: &str, coeffs: &str)

Source

pub fn build_n_values(&mut self, vars: &str, condition: &str, coeffs: &str)

Source

pub fn build_sum(&mut self, vars: &str, condition: &str, coeffs: &str)

Source

pub fn build_intention(&mut self, function: &str)

Source

pub fn build_regular( &mut self, list: &str, transitions_str: &str, start_str: &str, final_str: &str, )

Source

pub fn build_mdd(&mut self, list: &str, transitions_str: &str)

Source

pub fn build_ordered(&mut self, list: &str, lengths_str: &str, operator: &str)

Source

pub fn build_instantiation(&mut self, list: &str, values: &str)

Source

pub fn build_extension(&mut self, list: &str, tuple: &str, is_support: bool)

Source

pub fn build_all_equal(&mut self, list: &str)

Source

pub fn build_all_different(&mut self, list: &str)

Source

pub fn build_all_different_except(&mut self, list: &str, except: &str)

Source

pub fn build_all_different_matrix(&mut self, list: &str)

Auto Trait Implementations§

§

impl<'a> Freeze for XConstraintSet<'a>

§

impl<'a> !RefUnwindSafe for XConstraintSet<'a>

§

impl<'a> Send for XConstraintSet<'a>

§

impl<'a> Sync for XConstraintSet<'a>

§

impl<'a> Unpin for XConstraintSet<'a>

§

impl<'a> !UnwindSafe for XConstraintSet<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.