pub struct XObjectiveElement<'a> { /* private fields */ }Implementations§
Source§impl<'a> XObjectiveElement<'a>
impl<'a> XObjectiveElement<'a>
pub fn get_scope_string(&self) -> &Vec<XVarVal>
pub fn get_scope(&mut self) -> Vec<(&String, &XDomainInteger)>
pub fn new( operator: XElementOperator, scope: Vec<XVarVal>, coeffs: Vec<XVarVal>, set: &'a XVariableSet, ) -> Self
pub fn from_str( list_str: &str, coeffs_str: &str, ope_str: &str, set: &'a XVariableSet, ) -> Result<Self, Xcsp3Error>
pub fn get_operator(&self) -> &XElementOperator
pub fn get_coeffs(&self) -> &Vec<XVarVal>
Trait Implementations§
Source§impl<'a> Clone for XObjectiveElement<'a>
impl<'a> Clone for XObjectiveElement<'a>
Source§fn clone(&self) -> XObjectiveElement<'a>
fn clone(&self) -> XObjectiveElement<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for XObjectiveElement<'a>
impl<'a> !RefUnwindSafe for XObjectiveElement<'a>
impl<'a> Send for XObjectiveElement<'a>
impl<'a> Sync for XObjectiveElement<'a>
impl<'a> Unpin for XObjectiveElement<'a>
impl<'a> !UnwindSafe for XObjectiveElement<'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