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.

Performs the | operation.

impl BitOr<Term> for PartialConstraint
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl Add<Term> for Variable
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Variable> for Term
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Term> for Variable
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Variable> for Term
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<f64> for Term
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<f64> for Term
[src]

Performs the *= operation.

impl Mul<f32> for Term
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<f32> for Term
[src]

Performs the *= operation.

impl Mul<Term> for f64
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Term> for f32
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Div<f64> for Term
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl DivAssign<f64> for Term
[src]

Performs the /= operation.

impl Div<f32> for Term
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl DivAssign<f32> for Term
[src]

Performs the /= operation.

impl Add<f64> for Term
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<f32> for Term
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Term> for f64
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Term> for f32
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Term> for Term
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Expression> for Term
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Term> for Expression
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign<Term> for Expression
[src]

Performs the += operation.

impl Neg for Term
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl Sub<f64> for Term
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<f32> for Term
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Term> for f64
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Term> for f32
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Term> for Term
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Expression> for Term
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<Term> for Expression
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign<Term> for Expression
[src]

Performs the -= operation.

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. Read more

impl From<Term> for Expression
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Term

impl Sync for Term