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
variable: Variable
coefficient: f64
Trait Implementations
impl BitOr<WeightedRelation> for Term
[src]
type Output = PartialConstraint
The resulting type after applying the |
operator.
fn bitor(self, r: WeightedRelation) -> PartialConstraint
[src]
Performs the |
operation.
impl Add<Variable> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, v: Variable) -> Expression
[src]
Performs the +
operation.
impl Sub<Variable> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, v: Variable) -> Expression
[src]
Performs the -
operation.
impl Mul<f64> for Term
[src]
type Output = Term
The resulting type after applying the *
operator.
fn mul(self, v: f64) -> Term
[src]
Performs the *
operation.
impl Mul<f32> for Term
[src]
type Output = Term
The resulting type after applying the *
operator.
fn mul(self, v: f32) -> Term
[src]
Performs the *
operation.
impl Div<f64> for Term
[src]
type Output = Term
The resulting type after applying the /
operator.
fn div(self, v: f64) -> Term
[src]
Performs the /
operation.
impl Div<f32> for Term
[src]
type Output = Term
The resulting type after applying the /
operator.
fn div(self, v: f32) -> Term
[src]
Performs the /
operation.
impl Add<f64> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, v: f64) -> Expression
[src]
Performs the +
operation.
impl Add<f32> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, v: f32) -> Expression
[src]
Performs the +
operation.
impl Add<Term> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, t: Term) -> Expression
[src]
Performs the +
operation.
impl Add<Expression> for Term
[src]
type Output = Expression
The resulting type after applying the +
operator.
fn add(self, e: Expression) -> Expression
[src]
Performs the +
operation.
impl Neg for Term
[src]
type Output = Term
The resulting type after applying the -
operator.
fn neg(self) -> Term
[src]
Performs the unary -
operation.
impl Sub<f64> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, v: f64) -> Expression
[src]
Performs the -
operation.
impl Sub<f32> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, v: f32) -> Expression
[src]
Performs the -
operation.
impl Sub<Term> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, t: Term) -> Expression
[src]
Performs the -
operation.
impl Sub<Expression> for Term
[src]
type Output = Expression
The resulting type after applying the -
operator.
fn sub(self, e: Expression) -> Expression
[src]
Performs the -
operation.
impl Copy for Term
[src]
impl Clone for Term
[src]
fn clone(&self) -> Term
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more