Struct cassowary::Term
[−]
[src]
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]
impl BitOr<WeightedRelation> for Termtype Output = PartialConstraint
The resulting type after applying the | operator.
fn bitor(self, r: WeightedRelation) -> PartialConstraint[src]
fn bitor(self, r: WeightedRelation) -> PartialConstraintPerforms the | operation.
impl BitOr<Term> for PartialConstraint[src]
impl BitOr<Term> for PartialConstrainttype Output = Constraint
The resulting type after applying the | operator.
fn bitor(self, rhs: Term) -> Constraint[src]
fn bitor(self, rhs: Term) -> ConstraintPerforms the | operation.
impl Add<Term> for Variable[src]
impl Add<Term> for Variabletype Output = Expression
The resulting type after applying the + operator.
fn add(self, t: Term) -> Expression[src]
fn add(self, t: Term) -> ExpressionPerforms the + operation.
impl Add<Variable> for Term[src]
impl Add<Variable> for Termtype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: Variable) -> Expression[src]
fn add(self, v: Variable) -> ExpressionPerforms the + operation.
impl Sub<Term> for Variable[src]
impl Sub<Term> for Variabletype Output = Expression
The resulting type after applying the - operator.
fn sub(self, t: Term) -> Expression[src]
fn sub(self, t: Term) -> ExpressionPerforms the - operation.
impl Sub<Variable> for Term[src]
impl Sub<Variable> for Termtype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: Variable) -> Expression[src]
fn sub(self, v: Variable) -> ExpressionPerforms the - operation.
impl Mul<f64> for Term[src]
impl Mul<f64> for Termtype Output = Term
The resulting type after applying the * operator.
fn mul(self, v: f64) -> Term[src]
fn mul(self, v: f64) -> TermPerforms the * operation.
impl MulAssign<f64> for Term[src]
impl MulAssign<f64> for Termfn mul_assign(&mut self, v: f64)[src]
fn mul_assign(&mut self, v: f64)Performs the *= operation.
impl Mul<f32> for Term[src]
impl Mul<f32> for Termtype Output = Term
The resulting type after applying the * operator.
fn mul(self, v: f32) -> Term[src]
fn mul(self, v: f32) -> TermPerforms the * operation.
impl MulAssign<f32> for Term[src]
impl MulAssign<f32> for Termfn mul_assign(&mut self, v: f32)[src]
fn mul_assign(&mut self, v: f32)Performs the *= operation.
impl Mul<Term> for f64[src]
impl Mul<Term> for f64type Output = Term
The resulting type after applying the * operator.
fn mul(self, t: Term) -> Term[src]
fn mul(self, t: Term) -> TermPerforms the * operation.
impl Mul<Term> for f32[src]
impl Mul<Term> for f32type Output = Term
The resulting type after applying the * operator.
fn mul(self, t: Term) -> Term[src]
fn mul(self, t: Term) -> TermPerforms the * operation.
impl Div<f64> for Term[src]
impl Div<f64> for Termtype Output = Term
The resulting type after applying the / operator.
fn div(self, v: f64) -> Term[src]
fn div(self, v: f64) -> TermPerforms the / operation.
impl DivAssign<f64> for Term[src]
impl DivAssign<f64> for Termfn div_assign(&mut self, v: f64)[src]
fn div_assign(&mut self, v: f64)Performs the /= operation.
impl Div<f32> for Term[src]
impl Div<f32> for Termtype Output = Term
The resulting type after applying the / operator.
fn div(self, v: f32) -> Term[src]
fn div(self, v: f32) -> TermPerforms the / operation.
impl DivAssign<f32> for Term[src]
impl DivAssign<f32> for Termfn div_assign(&mut self, v: f32)[src]
fn div_assign(&mut self, v: f32)Performs the /= operation.
impl Add<f64> for Term[src]
impl Add<f64> for Termtype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: f64) -> Expression[src]
fn add(self, v: f64) -> ExpressionPerforms the + operation.
impl Add<f32> for Term[src]
impl Add<f32> for Termtype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: f32) -> Expression[src]
fn add(self, v: f32) -> ExpressionPerforms the + operation.
impl Add<Term> for f64[src]
impl Add<Term> for f64type Output = Expression
The resulting type after applying the + operator.
fn add(self, t: Term) -> Expression[src]
fn add(self, t: Term) -> ExpressionPerforms the + operation.
impl Add<Term> for f32[src]
impl Add<Term> for f32type Output = Expression
The resulting type after applying the + operator.
fn add(self, t: Term) -> Expression[src]
fn add(self, t: Term) -> ExpressionPerforms the + operation.
impl Add<Term> for Term[src]
impl Add<Term> for Termtype Output = Expression
The resulting type after applying the + operator.
fn add(self, t: Term) -> Expression[src]
fn add(self, t: Term) -> ExpressionPerforms the + operation.
impl Add<Expression> for Term[src]
impl Add<Expression> for Termtype Output = Expression
The resulting type after applying the + operator.
fn add(self, e: Expression) -> Expression[src]
fn add(self, e: Expression) -> ExpressionPerforms the + operation.
impl Add<Term> for Expression[src]
impl Add<Term> for Expressiontype Output = Expression
The resulting type after applying the + operator.
fn add(self, t: Term) -> Expression[src]
fn add(self, t: Term) -> ExpressionPerforms the + operation.
impl AddAssign<Term> for Expression[src]
impl AddAssign<Term> for Expressionfn add_assign(&mut self, t: Term)[src]
fn add_assign(&mut self, t: Term)Performs the += operation.
impl Neg for Term[src]
impl Neg for Termtype Output = Term
The resulting type after applying the - operator.
fn neg(self) -> Term[src]
fn neg(self) -> TermPerforms the unary - operation.
impl Sub<f64> for Term[src]
impl Sub<f64> for Termtype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: f64) -> Expression[src]
fn sub(self, v: f64) -> ExpressionPerforms the - operation.
impl Sub<f32> for Term[src]
impl Sub<f32> for Termtype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: f32) -> Expression[src]
fn sub(self, v: f32) -> ExpressionPerforms the - operation.
impl Sub<Term> for f64[src]
impl Sub<Term> for f64type Output = Expression
The resulting type after applying the - operator.
fn sub(self, t: Term) -> Expression[src]
fn sub(self, t: Term) -> ExpressionPerforms the - operation.
impl Sub<Term> for f32[src]
impl Sub<Term> for f32type Output = Expression
The resulting type after applying the - operator.
fn sub(self, t: Term) -> Expression[src]
fn sub(self, t: Term) -> ExpressionPerforms the - operation.
impl Sub<Term> for Term[src]
impl Sub<Term> for Termtype Output = Expression
The resulting type after applying the - operator.
fn sub(self, t: Term) -> Expression[src]
fn sub(self, t: Term) -> ExpressionPerforms the - operation.
impl Sub<Expression> for Term[src]
impl Sub<Expression> for Termtype Output = Expression
The resulting type after applying the - operator.
fn sub(self, e: Expression) -> Expression[src]
fn sub(self, e: Expression) -> ExpressionPerforms the - operation.
impl Sub<Term> for Expression[src]
impl Sub<Term> for Expressiontype Output = Expression
The resulting type after applying the - operator.
fn sub(self, t: Term) -> Expression[src]
fn sub(self, t: Term) -> ExpressionPerforms the - operation.
impl SubAssign<Term> for Expression[src]
impl SubAssign<Term> for Expressionfn sub_assign(&mut self, t: Term)[src]
fn sub_assign(&mut self, t: Term)Performs the -= operation.
impl Copy for Term[src]
impl Copy for Termimpl Clone for Term[src]
impl Clone for Termfn clone(&self) -> Term[src]
fn clone(&self) -> TermReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Term[src]
impl Debug for Termfn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Term> for Expression[src]
impl From<Term> for Expressionfn from(t: Term) -> Expression[src]
fn from(t: Term) -> ExpressionPerforms the conversion.