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]

fn new() -> Variable

Produces a new unique variable for use in constraint solving.

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<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<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 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 Debug for Variable
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Ord for Variable
[src]

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

This method returns an Ordering between self and other. Read more

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 Eq for Variable
[src]

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 Hash for Variable
[src]

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

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 Copy for Variable
[src]