# 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]

## Trait Implementations

`impl BitOr<WeightedRelation> for Variable`

[src]

`type Output = PartialConstraint`

The resulting type after applying the `|`

operator

`fn bitor(self, r: WeightedRelation) -> PartialConstraint`

The method for the `|`

operator

`impl Add<f64> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `+`

operator

`fn add(self, v: f64) -> Expression`

The method for the `+`

operator

`impl Add<f32> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `+`

operator

`fn add(self, v: f32) -> Expression`

The method for the `+`

operator

`impl Add<Variable> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `+`

operator

`fn add(self, v: Variable) -> Expression`

The method for the `+`

operator

`impl Add<Term> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `+`

operator

`fn add(self, t: Term) -> Expression`

The method for the `+`

operator

`impl Add<Expression> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `+`

operator

`fn add(self, e: Expression) -> Expression`

The method for the `+`

operator

`impl Neg for Variable`

[src]

`type Output = Term`

The resulting type after applying the `-`

operator

`fn neg(self) -> Term`

The method for the unary `-`

operator

`impl Sub<f64> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `-`

operator

`fn sub(self, v: f64) -> Expression`

The method for the `-`

operator

`impl Sub<f32> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `-`

operator

`fn sub(self, v: f32) -> Expression`

The method for the `-`

operator

`impl Sub<Variable> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `-`

operator

`fn sub(self, v: Variable) -> Expression`

The method for the `-`

operator

`impl Sub<Term> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `-`

operator

`fn sub(self, t: Term) -> Expression`

The method for the `-`

operator

`impl Sub<Expression> for Variable`

[src]

`type Output = Expression`

The resulting type after applying the `-`

operator

`fn sub(self, e: Expression) -> Expression`

The method for the `-`

operator

`impl Mul<f64> for Variable`

[src]

`type Output = Term`

The resulting type after applying the `*`

operator

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

The method for the `*`

operator

`impl Mul<f32> for Variable`

[src]

`type Output = Term`

The resulting type after applying the `*`

operator

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

The method for the `*`

operator

`impl Div<f64> for Variable`

[src]

`type Output = Term`

The resulting type after applying the `/`

operator

`fn div(self, v: f64) -> Term`

The method for the `/`

operator

`impl Div<f32> for Variable`

[src]

`type Output = Term`

The resulting type after applying the `/`

operator

`fn div(self, v: f32) -> Term`

The method for the `/`

operator

`impl Copy for Variable`

[src]

`impl Clone for Variable`

[src]

`fn clone(&self) -> Variable`

Returns a copy of the value. Read more

`fn clone_from(&mut self, source: &Self)`

1.0.0

Performs copy-assignment from `source`

. Read more

`impl Hash for Variable`

[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

H: Hasher,

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

]. Read more

`impl PartialEq for Variable`

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

This method tests for `!=`

.

`impl Eq for Variable`

[src]

`impl PartialOrd for Variable`

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

This method tests less than (for `self`

and `other`

) and is used by the `<`

operator. Read more

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

This method tests greater than (for `self`

and `other`

) and is used by the `>`

operator. Read more

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

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

This method returns an `Ordering`

between `self`

and `other`

. Read more

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

`ord_max_min`

)Compares and returns the maximum of two values. Read more

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

`ord_max_min`

)Compares and returns the minimum of two values. Read more