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 Term
type Output = PartialConstraint
The resulting type after applying the |
operator.
fn bitor(self, r: WeightedRelation) -> PartialConstraint
[src]
fn bitor(self, r: WeightedRelation) -> PartialConstraint
Performs the |
operation.
impl BitOr<Term> for PartialConstraint
[src]
impl BitOr<Term> for PartialConstraint
type Output = Constraint
The resulting type after applying the |
operator.
fn bitor(self, rhs: Term) -> Constraint
[src]
fn bitor(self, rhs: Term) -> Constraint
Performs the |
operation.
impl Add<Term> for Variable
[src]
impl Add<Term> for Variable
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, t: Term) -> Expression
[src]
fn add(self, t: Term) -> Expression
Performs the +
operation.
impl Add<Variable> for Term
[src]
impl Add<Variable> for Term
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, v: Variable) -> Expression
[src]
fn add(self, v: Variable) -> Expression
Performs the +
operation.
impl Sub<Term> for Variable
[src]
impl Sub<Term> for Variable
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, t: Term) -> Expression
[src]
fn sub(self, t: Term) -> Expression
Performs the -
operation.
impl Sub<Variable> for Term
[src]
impl Sub<Variable> for Term
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, v: Variable) -> Expression
[src]
fn sub(self, v: Variable) -> Expression
Performs the -
operation.
impl Mul<f64> for Term
[src]
impl Mul<f64> for Term
type Output = Term
The resulting type after applying the *
operator.
fn mul(self, v: f64) -> Term
[src]
fn mul(self, v: f64) -> Term
Performs the *
operation.
impl MulAssign<f64> for Term
[src]
impl MulAssign<f64> for Term
fn 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 Term
type Output = Term
The resulting type after applying the *
operator.
fn mul(self, v: f32) -> Term
[src]
fn mul(self, v: f32) -> Term
Performs the *
operation.
impl MulAssign<f32> for Term
[src]
impl MulAssign<f32> for Term
fn 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 f64
type Output = Term
The resulting type after applying the *
operator.
fn mul(self, t: Term) -> Term
[src]
fn mul(self, t: Term) -> Term
Performs the *
operation.
impl Mul<Term> for f32
[src]
impl Mul<Term> for f32
type Output = Term
The resulting type after applying the *
operator.
fn mul(self, t: Term) -> Term
[src]
fn mul(self, t: Term) -> Term
Performs the *
operation.
impl Div<f64> for Term
[src]
impl Div<f64> for Term
type Output = Term
The resulting type after applying the /
operator.
fn div(self, v: f64) -> Term
[src]
fn div(self, v: f64) -> Term
Performs the /
operation.
impl DivAssign<f64> for Term
[src]
impl DivAssign<f64> for Term
fn 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 Term
type Output = Term
The resulting type after applying the /
operator.
fn div(self, v: f32) -> Term
[src]
fn div(self, v: f32) -> Term
Performs the /
operation.
impl DivAssign<f32> for Term
[src]
impl DivAssign<f32> for Term
fn 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 Term
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, v: f64) -> Expression
[src]
fn add(self, v: f64) -> Expression
Performs the +
operation.
impl Add<f32> for Term
[src]
impl Add<f32> for Term
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, v: f32) -> Expression
[src]
fn add(self, v: f32) -> Expression
Performs the +
operation.
impl Add<Term> for f64
[src]
impl Add<Term> for f64
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, t: Term) -> Expression
[src]
fn add(self, t: Term) -> Expression
Performs the +
operation.
impl Add<Term> for f32
[src]
impl Add<Term> for f32
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, t: Term) -> Expression
[src]
fn add(self, t: Term) -> Expression
Performs the +
operation.
impl Add<Term> for Term
[src]
impl Add<Term> for Term
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, t: Term) -> Expression
[src]
fn add(self, t: Term) -> Expression
Performs the +
operation.
impl Add<Expression> for Term
[src]
impl Add<Expression> for Term
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, e: Expression) -> Expression
[src]
fn add(self, e: Expression) -> Expression
Performs the +
operation.
impl Add<Term> for Expression
[src]
impl Add<Term> for Expression
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, t: Term) -> Expression
[src]
fn add(self, t: Term) -> Expression
Performs the +
operation.
impl AddAssign<Term> for Expression
[src]
impl AddAssign<Term> for Expression
fn 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 Term
type Output = Term
The resulting type after applying the -
operator.
fn neg(self) -> Term
[src]
fn neg(self) -> Term
Performs the unary -
operation.
impl Sub<f64> for Term
[src]
impl Sub<f64> for Term
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, v: f64) -> Expression
[src]
fn sub(self, v: f64) -> Expression
Performs the -
operation.
impl Sub<f32> for Term
[src]
impl Sub<f32> for Term
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, v: f32) -> Expression
[src]
fn sub(self, v: f32) -> Expression
Performs the -
operation.
impl Sub<Term> for f64
[src]
impl Sub<Term> for f64
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, t: Term) -> Expression
[src]
fn sub(self, t: Term) -> Expression
Performs the -
operation.
impl Sub<Term> for f32
[src]
impl Sub<Term> for f32
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, t: Term) -> Expression
[src]
fn sub(self, t: Term) -> Expression
Performs the -
operation.
impl Sub<Term> for Term
[src]
impl Sub<Term> for Term
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, t: Term) -> Expression
[src]
fn sub(self, t: Term) -> Expression
Performs the -
operation.
impl Sub<Expression> for Term
[src]
impl Sub<Expression> for Term
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, e: Expression) -> Expression
[src]
fn sub(self, e: Expression) -> Expression
Performs the -
operation.
impl Sub<Term> for Expression
[src]
impl Sub<Term> for Expression
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, t: Term) -> Expression
[src]
fn sub(self, t: Term) -> Expression
Performs the -
operation.
impl SubAssign<Term> for Expression
[src]
impl SubAssign<Term> for Expression
fn 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 Term
impl Clone for Term
[src]
impl Clone for Term
fn clone(&self) -> Term
[src]
fn clone(&self) -> Term
Returns 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 Term
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Term> for Expression
[src]
impl From<Term> for Expression
fn from(t: Term) -> Expression
[src]
fn from(t: Term) -> Expression
Performs the conversion.