# Struct cassowary::Variable
[−]
[src]

pub struct Variable(_);

Identifies a variable for the constraint solver. Each new variable is unique in the view of the solver, but copying or cloning the variable produces a copy of the same variable.

## Methods

`impl Variable`

[src]

`impl Variable`

## Trait Implementations

`impl BitOr<WeightedRelation> for Variable`

[src]

`impl BitOr<WeightedRelation> for Variable`

`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<Variable> for PartialConstraint`

[src]

`impl BitOr<Variable> for PartialConstraint`

`type Output = Constraint`

The resulting type after applying the `|`

operator.

`fn bitor(self, rhs: Variable) -> Constraint`

[src]

`fn bitor(self, rhs: Variable) -> Constraint`

Performs the `|`

operation.

`impl Add<f64> for Variable`

[src]

`impl Add<f64> for Variable`

`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 Variable`

[src]

`impl Add<f32> for Variable`

`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<Variable> for f64`

[src]

`impl Add<Variable> for f64`

`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 Add<Variable> for f32`

[src]

`impl Add<Variable> for f32`

`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 Add<Variable> for Variable`

[src]

`impl Add<Variable> for Variable`

`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 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 Add<Expression> for Variable`

[src]

`impl Add<Expression> for Variable`

`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<Variable> for Expression`

[src]

`impl Add<Variable> for Expression`

`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 AddAssign<Variable> for Expression`

[src]

`impl AddAssign<Variable> for Expression`

`fn add_assign(&mut self, v: Variable)`

[src]

`fn add_assign(&mut self, v: Variable)`

Performs the `+=`

operation.

`impl Neg for Variable`

[src]

`impl Neg for Variable`

`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 Variable`

[src]

`impl Sub<f64> for Variable`

`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 Variable`

[src]

`impl Sub<f32> for Variable`

`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<Variable> for f64`

[src]

`impl Sub<Variable> for f64`

`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 Sub<Variable> for f32`

[src]

`impl Sub<Variable> for f32`

`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 Sub<Variable> for Variable`

[src]

`impl Sub<Variable> for Variable`

`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 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 Sub<Expression> for Variable`

[src]

`impl Sub<Expression> for Variable`

`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<Variable> for Expression`

[src]

`impl Sub<Variable> for Expression`

`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 SubAssign<Variable> for Expression`

[src]

`impl SubAssign<Variable> for Expression`

`fn sub_assign(&mut self, v: Variable)`

[src]

`fn sub_assign(&mut self, v: Variable)`

Performs the `-=`

operation.

`impl Mul<f64> for Variable`

[src]

`impl Mul<f64> for Variable`

`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 Mul<f32> for Variable`

[src]

`impl Mul<f32> for Variable`

`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 Mul<Variable> for f64`

[src]

`impl Mul<Variable> for f64`

`type Output = Term`

The resulting type after applying the `*`

operator.

`fn mul(self, v: Variable) -> Term`

[src]

`fn mul(self, v: Variable) -> Term`

Performs the `*`

operation.

`impl Mul<Variable> for f32`

[src]

`impl Mul<Variable> for f32`

`type Output = Term`

The resulting type after applying the `*`

operator.

`fn mul(self, v: Variable) -> Term`

[src]

`fn mul(self, v: Variable) -> Term`

Performs the `*`

operation.

`impl Div<f64> for Variable`

[src]

`impl Div<f64> for Variable`

`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 Div<f32> for Variable`

[src]

`impl Div<f32> for Variable`

`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 Copy for Variable`

[src]

`impl Copy for Variable`

`impl Clone for Variable`

[src]

`impl Clone for Variable`

`fn clone(&self) -> Variable`

[src]

`fn clone(&self) -> Variable`

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 Hash for Variable`

[src]

`impl Hash for Variable`

`fn hash<__H: Hasher>(&self, __arg_0: &mut __H)`

[src]

`fn hash<__H: Hasher>(&self, __arg_0: &mut __H)`

Feeds this value into the given [`Hasher`

]. Read more

`fn hash_slice<H>(data: &[Self], state: &mut H) where`

H: Hasher,

1.3.0[src]

`fn hash_slice<H>(data: &[Self], state: &mut H) where`

H: Hasher,

Feeds a slice of this type into the given [`Hasher`

]. Read more

`impl PartialEq for Variable`

[src]

`impl PartialEq for Variable`

`fn eq(&self, __arg_0: &Variable) -> bool`

[src]

`fn eq(&self, __arg_0: &Variable) -> bool`

This method tests for `self`

and `other`

values to be equal, and is used by `==`

. Read more

`fn ne(&self, __arg_0: &Variable) -> bool`

[src]

`fn ne(&self, __arg_0: &Variable) -> bool`

This method tests for `!=`

.

`impl Eq for Variable`

[src]

`impl Eq for Variable`

`impl PartialOrd for Variable`

[src]

`impl PartialOrd for Variable`

`fn partial_cmp(&self, __arg_0: &Variable) -> Option<Ordering>`

[src]

`fn partial_cmp(&self, __arg_0: &Variable) -> Option<Ordering>`

This method returns an ordering between `self`

and `other`

values if one exists. Read more

`fn lt(&self, __arg_0: &Variable) -> bool`

[src]

`fn lt(&self, __arg_0: &Variable) -> bool`

This method tests less than (for `self`

and `other`

) and is used by the `<`

operator. Read more

`fn le(&self, __arg_0: &Variable) -> bool`

[src]

`fn le(&self, __arg_0: &Variable) -> bool`

This method tests less than or equal to (for `self`

and `other`

) and is used by the `<=`

operator. Read more

`fn gt(&self, __arg_0: &Variable) -> bool`

[src]

`fn gt(&self, __arg_0: &Variable) -> bool`

This method tests greater than (for `self`

and `other`

) and is used by the `>`

operator. Read more

`fn ge(&self, __arg_0: &Variable) -> bool`

[src]

`fn ge(&self, __arg_0: &Variable) -> bool`

This method tests greater than or equal to (for `self`

and `other`

) and is used by the `>=`

operator. Read more

`impl Ord for Variable`

[src]

`impl Ord for Variable`

`fn cmp(&self, __arg_0: &Variable) -> Ordering`

[src]

`fn cmp(&self, __arg_0: &Variable) -> Ordering`

This method returns an `Ordering`

between `self`

and `other`

. Read more

`fn max(self, other: Self) -> Self`

1.21.0[src]

`fn max(self, other: Self) -> Self`

Compares and returns the maximum of two values. Read more

`fn min(self, other: Self) -> Self`

1.21.0[src]

`fn min(self, other: Self) -> Self`

Compares and returns the minimum of two values. Read more

`impl Debug for Variable`

[src]

`impl Debug for Variable`

`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<Variable> for Expression`

[src]

`impl From<Variable> for Expression`

`fn from(v: Variable) -> Expression`

[src]

`fn from(v: Variable) -> Expression`

Performs the conversion.