pub struct ConstraintExpression {
pub terms: Vec<LinearTerm>,
}Expand description
Parsed linear constraint expression.
Represents the left-hand side of a generic constraint as a list of weighted
variable references. An empty terms vector is valid (constant-only
expression, unusual but not rejected at this layer).
The expression parser (string → ConstraintExpression) lives in cobre-io.
Fields§
§terms: Vec<LinearTerm>Ordered list of linear terms that form the left-hand side of the constraint.
Trait Implementations§
Source§impl Clone for ConstraintExpression
impl Clone for ConstraintExpression
Source§fn clone(&self) -> ConstraintExpression
fn clone(&self) -> ConstraintExpression
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 ConstraintExpression
impl Debug for ConstraintExpression
Source§impl PartialEq for ConstraintExpression
impl PartialEq for ConstraintExpression
impl StructuralPartialEq for ConstraintExpression
Auto Trait Implementations§
impl Freeze for ConstraintExpression
impl RefUnwindSafe for ConstraintExpression
impl Send for ConstraintExpression
impl Sync for ConstraintExpression
impl Unpin for ConstraintExpression
impl UnsafeUnpin for ConstraintExpression
impl UnwindSafe for ConstraintExpression
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