pub struct Term {
pub variable: Variable,
pub coefficient: f64,
}
Expand description
A variable and a coefficient to multiply that variable by. This is a sub-expression in a constraint equation.
Fields§
§variable: Variable
§coefficient: f64
Trait Implementations§
Source§impl Add<Expression> for Term
impl Add<Expression> for Term
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 Expression
impl Add<Term> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§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<Term> for f32
impl Add<Term> for f32
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<Term> for f64
impl Add<Term> for f64
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<f32> for Term
impl Add<f32> for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add<f64> for Term
impl Add<f64> for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl Add for Term
impl Add for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
+
operator.Source§impl BitOr<Term> for PartialConstraint
impl BitOr<Term> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
|
operator.Source§impl BitOr<WeightedRelation> for Term
impl BitOr<WeightedRelation> for Term
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<Term> for Expression
impl From<Term> for Expression
Source§fn from(t: Term) -> Expression
fn from(t: Term) -> Expression
Converts to this type from the input type.
Source§impl Sub<Expression> for Term
impl Sub<Expression> for Term
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 Expression
impl Sub<Term> for Expression
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§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<Term> for f32
impl Sub<Term> for f32
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<Term> for f64
impl Sub<Term> for f64
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<f32> for Term
impl Sub<f32> for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub<f64> for Term
impl Sub<f64> for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.Source§impl Sub for Term
impl Sub for Term
Source§type Output = Expression
type Output = Expression
The resulting type after applying the
-
operator.impl Copy for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)