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

Trait Implementations

impl BitOr<WeightedRelation> for Term
[src]

The resulting type after applying the | operator

The method for the | operator

impl Add<Variable> for Term
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Variable> for Term
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<f64> for Term
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<f32> for Term
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<f64> for Term
[src]

The resulting type after applying the / operator

The method for the / operator

impl Div<f32> for Term
[src]

The resulting type after applying the / operator

The method for the / operator

impl Add<f64> for Term
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<f32> for Term
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<Term> for Term
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<Expression> for Term
[src]

The resulting type after applying the + operator

The method for the + operator

impl Neg for Term
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl Sub<f64> for Term
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<f32> for Term
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<Term> for Term
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<Expression> for Term
[src]

The resulting type after applying the - operator

The method for the - operator

impl Copy for Term
[src]

impl Clone for Term
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Term
[src]

Formats the value using the given formatter.