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.

[src]

Performs the | operation.

impl Add<Variable> for Term
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Variable> for Term
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<f64> for Term
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<f32> for Term
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<f64> for Term
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<f32> for Term
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Add<f64> for Term
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<f32> for Term
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<Term> for Term
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<Expression> for Term
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Neg for Term
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl Sub<f64> for Term
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<f32> for Term
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<Term> for Term
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<Expression> for Term
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Copy for Term
[src]

impl Clone for Term
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Term
[src]

[src]

Formats the value using the given formatter.