Struct cassowary::Term
[−]
[src]
pub struct Term { pub variable: Variable, pub coefficient: f64, }
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
impl BitOr<WeightedRelation> for Term
[src]
type Output = PartialConstraint
The resulting type after applying the |
operator
fn bitor(self, r: WeightedRelation) -> PartialConstraint
The method for the |
operator
impl Add<Variable> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator
fn add(self, v: Variable) -> Expression
The method for the +
operator
impl Sub<Variable> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator
fn sub(self, v: Variable) -> Expression
The method for the -
operator
impl Mul<f64> for Term
[src]
type Output = Term
The resulting type after applying the *
operator
fn mul(self, v: f64) -> Term
The method for the *
operator
impl Div<f64> for Term
[src]
type Output = Term
The resulting type after applying the /
operator
fn div(self, v: f64) -> Term
The method for the /
operator
impl Add<f64> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator
fn add(self, v: f64) -> Expression
The method for the +
operator
impl Add<Term> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator
fn add(self, t: Term) -> Expression
The method for the +
operator
impl Add<Expression> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator
fn add(self, e: Expression) -> Expression
The method for the +
operator
impl Neg for Term
[src]
type Output = Term
The resulting type after applying the -
operator
fn neg(self) -> Term
The method for the unary -
operator
impl Sub<f64> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator
fn sub(self, v: f64) -> Expression
The method for the -
operator
impl Sub<Term> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator
fn sub(self, t: Term) -> Expression
The method for the -
operator
impl Sub<Expression> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator
fn sub(self, e: Expression) -> Expression
The method for the -
operator
impl Debug for Term
[src]
impl Clone for Term
[src]
fn clone(&self) -> Term
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more