pub struct XExtension<'a> { /* private fields */ }Implementations§
Source§impl<'a> XExtension<'a>
impl<'a> XExtension<'a>
Sourcepub fn from_str(
list: &str,
tuple: &str,
is_support: bool,
set: &'a XVariableSet,
) -> Result<Self, Xcsp3Error>
pub fn from_str( list: &str, tuple: &str, is_support: bool, set: &'a XVariableSet, ) -> Result<Self, Xcsp3Error>
construct the constraint from two strings and a bool
pub fn new( scope: Vec<XVarVal>, set: &'a XVariableSet, tuples: Vec<Vec<i32>>, is_support: bool, ) -> Self
Trait Implementations§
Source§impl Display for XExtension<'_>
impl Display for XExtension<'_>
Source§impl XConstraintTrait for XExtension<'_>
impl XConstraintTrait for XExtension<'_>
Source§fn get_scope_string(&self) -> &Vec<XVarVal>
fn get_scope_string(&self) -> &Vec<XVarVal>
get the scope string of constraint
Auto Trait Implementations§
impl<'a> Freeze for XExtension<'a>
impl<'a> !RefUnwindSafe for XExtension<'a>
impl<'a> Send for XExtension<'a>
impl<'a> Sync for XExtension<'a>
impl<'a> Unpin for XExtension<'a>
impl<'a> !UnwindSafe for XExtension<'a>
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