pub struct Variable(/* private fields */);
Expand description
Identifies a variable for the constraint solver. Each new variable is unique in the view of the solver, but copying or cloning the variable produces a copy of the same variable.
Implementations§
Trait Implementations§
Source§impl Add<Expression> for Variable
impl Add<Expression> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§fn add(self, e: Expression) -> Expression
fn add(self, e: Expression) -> Expression
Performs the
+
operation. Read moreSource§impl Add<Term> for Variable
impl Add<Term> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<Variable> for Expression
impl Add<Variable> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<Variable> for Term
impl Add<Variable> for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<Variable> for f32
impl Add<Variable> for f32
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<Variable> for f64
impl Add<Variable> for f64
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<f32> for Variable
impl Add<f32> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<f64> for Variable
impl Add<f64> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add for Variable
impl Add for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl BitOr<Variable> for PartialConstraint
impl BitOr<Variable> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
|
operator.Source§impl BitOr<WeightedRelation> for Variable
impl BitOr<WeightedRelation> for Variable
Source§type Output = PartialConstraint
type Output = PartialConstraint
The resulting type after applying the
|
operator.Source§fn bitor(self, r: WeightedRelation) -> PartialConstraint
fn bitor(self, r: WeightedRelation) -> PartialConstraint
Performs the
|
operation. Read moreSource§impl From<Variable> for Expression
impl From<Variable> for Expression
Source§fn from(v: Variable) -> Expression
fn from(v: Variable) -> Expression
Converts to this type from the input type.
Source§impl Ord for Variable
impl Ord for Variable
Source§impl PartialOrd for Variable
impl PartialOrd for Variable
Source§impl Sub<Expression> for Variable
impl Sub<Expression> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§fn sub(self, e: Expression) -> Expression
fn sub(self, e: Expression) -> Expression
Performs the
-
operation. Read moreSource§impl Sub<Term> for Variable
impl Sub<Term> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<Variable> for Expression
impl Sub<Variable> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<Variable> for Term
impl Sub<Variable> for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<Variable> for f32
impl Sub<Variable> for f32
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<Variable> for f64
impl Sub<Variable> for f64
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<f32> for Variable
impl Sub<f32> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<f64> for Variable
impl Sub<f64> for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub for Variable
impl Sub for Variable
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.impl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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