pub trait ConstraintEquality<'model, Rhs> {
// Required methods
fn eq(self, other: Rhs) -> Constraint<'model>;
fn ne(self, other: Rhs) -> Constraint<'model>;
}Expand description
Trait for creating equality constraints between variables or constants.
Provides methods to create equality (eq) and inequality (ne) constraints.
Required Methods§
Sourcefn eq(self, other: Rhs) -> Constraint<'model>
fn eq(self, other: Rhs) -> Constraint<'model>
Creates an equality constraint (=).
Sourcefn ne(self, other: Rhs) -> Constraint<'model>
fn ne(self, other: Rhs) -> Constraint<'model>
Creates an inequality constraint (!=).