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 VariableTrait Implementations
impl BitOr<WeightedRelation> for Variable[src]
impl BitOr<WeightedRelation> for Variabletype Output = PartialConstraint
The resulting type after applying the | operator.
fn bitor(self, r: WeightedRelation) -> PartialConstraint[src]
fn bitor(self, r: WeightedRelation) -> PartialConstraintPerforms the | operation.
impl BitOr<Variable> for PartialConstraint[src]
impl BitOr<Variable> for PartialConstrainttype Output = Constraint
The resulting type after applying the | operator.
fn bitor(self, rhs: Variable) -> Constraint[src]
fn bitor(self, rhs: Variable) -> ConstraintPerforms the | operation.
impl Add<f64> for Variable[src]
impl Add<f64> for Variabletype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: f64) -> Expression[src]
fn add(self, v: f64) -> ExpressionPerforms the + operation.
impl Add<f32> for Variable[src]
impl Add<f32> for Variabletype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: f32) -> Expression[src]
fn add(self, v: f32) -> ExpressionPerforms the + operation.
impl Add<Variable> for f64[src]
impl Add<Variable> for f64type Output = Expression
The resulting type after applying the + operator.
fn add(self, v: Variable) -> Expression[src]
fn add(self, v: Variable) -> ExpressionPerforms the + operation.
impl Add<Variable> for f32[src]
impl Add<Variable> for f32type Output = Expression
The resulting type after applying the + operator.
fn add(self, v: Variable) -> Expression[src]
fn add(self, v: Variable) -> ExpressionPerforms the + operation.
impl Add<Variable> for Variable[src]
impl Add<Variable> for Variabletype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: Variable) -> Expression[src]
fn add(self, v: Variable) -> ExpressionPerforms the + operation.
impl Add<Term> for Variable[src]
impl Add<Term> for Variabletype Output = Expression
The resulting type after applying the + operator.
fn add(self, t: Term) -> Expression[src]
fn add(self, t: Term) -> ExpressionPerforms the + operation.
impl Add<Variable> for Term[src]
impl Add<Variable> for Termtype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: Variable) -> Expression[src]
fn add(self, v: Variable) -> ExpressionPerforms the + operation.
impl Add<Expression> for Variable[src]
impl Add<Expression> for Variabletype Output = Expression
The resulting type after applying the + operator.
fn add(self, e: Expression) -> Expression[src]
fn add(self, e: Expression) -> ExpressionPerforms the + operation.
impl Add<Variable> for Expression[src]
impl Add<Variable> for Expressiontype Output = Expression
The resulting type after applying the + operator.
fn add(self, v: Variable) -> Expression[src]
fn add(self, v: Variable) -> ExpressionPerforms the + operation.
impl AddAssign<Variable> for Expression[src]
impl AddAssign<Variable> for Expressionfn 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 Variabletype Output = Term
The resulting type after applying the - operator.
fn neg(self) -> Term[src]
fn neg(self) -> TermPerforms the unary - operation.
impl Sub<f64> for Variable[src]
impl Sub<f64> for Variabletype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: f64) -> Expression[src]
fn sub(self, v: f64) -> ExpressionPerforms the - operation.
impl Sub<f32> for Variable[src]
impl Sub<f32> for Variabletype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: f32) -> Expression[src]
fn sub(self, v: f32) -> ExpressionPerforms the - operation.
impl Sub<Variable> for f64[src]
impl Sub<Variable> for f64type Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: Variable) -> Expression[src]
fn sub(self, v: Variable) -> ExpressionPerforms the - operation.
impl Sub<Variable> for f32[src]
impl Sub<Variable> for f32type Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: Variable) -> Expression[src]
fn sub(self, v: Variable) -> ExpressionPerforms the - operation.
impl Sub<Variable> for Variable[src]
impl Sub<Variable> for Variabletype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: Variable) -> Expression[src]
fn sub(self, v: Variable) -> ExpressionPerforms the - operation.
impl Sub<Term> for Variable[src]
impl Sub<Term> for Variabletype Output = Expression
The resulting type after applying the - operator.
fn sub(self, t: Term) -> Expression[src]
fn sub(self, t: Term) -> ExpressionPerforms the - operation.
impl Sub<Variable> for Term[src]
impl Sub<Variable> for Termtype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: Variable) -> Expression[src]
fn sub(self, v: Variable) -> ExpressionPerforms the - operation.
impl Sub<Expression> for Variable[src]
impl Sub<Expression> for Variabletype Output = Expression
The resulting type after applying the - operator.
fn sub(self, e: Expression) -> Expression[src]
fn sub(self, e: Expression) -> ExpressionPerforms the - operation.
impl Sub<Variable> for Expression[src]
impl Sub<Variable> for Expressiontype Output = Expression
The resulting type after applying the - operator.
fn sub(self, v: Variable) -> Expression[src]
fn sub(self, v: Variable) -> ExpressionPerforms the - operation.
impl SubAssign<Variable> for Expression[src]
impl SubAssign<Variable> for Expressionfn 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 Variabletype Output = Term
The resulting type after applying the * operator.
fn mul(self, v: f64) -> Term[src]
fn mul(self, v: f64) -> TermPerforms the * operation.
impl Mul<f32> for Variable[src]
impl Mul<f32> for Variabletype Output = Term
The resulting type after applying the * operator.
fn mul(self, v: f32) -> Term[src]
fn mul(self, v: f32) -> TermPerforms the * operation.
impl Mul<Variable> for f64[src]
impl Mul<Variable> for f64type Output = Term
The resulting type after applying the * operator.
fn mul(self, v: Variable) -> Term[src]
fn mul(self, v: Variable) -> TermPerforms the * operation.
impl Mul<Variable> for f32[src]
impl Mul<Variable> for f32type Output = Term
The resulting type after applying the * operator.
fn mul(self, v: Variable) -> Term[src]
fn mul(self, v: Variable) -> TermPerforms the * operation.
impl Div<f64> for Variable[src]
impl Div<f64> for Variabletype Output = Term
The resulting type after applying the / operator.
fn div(self, v: f64) -> Term[src]
fn div(self, v: f64) -> TermPerforms the / operation.
impl Div<f32> for Variable[src]
impl Div<f32> for Variabletype Output = Term
The resulting type after applying the / operator.
fn div(self, v: f32) -> Term[src]
fn div(self, v: f32) -> TermPerforms the / operation.
impl Copy for Variable[src]
impl Copy for Variableimpl Clone for Variable[src]
impl Clone for Variablefn clone(&self) -> Variable[src]
fn clone(&self) -> VariableReturns 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 Variablefn 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 Variablefn eq(&self, __arg_0: &Variable) -> bool[src]
fn eq(&self, __arg_0: &Variable) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Variable[src]
impl Eq for Variableimpl PartialOrd for Variable[src]
impl PartialOrd for Variablefn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 Variablefn cmp(&self, __arg_0: &Variable) -> Ordering[src]
fn cmp(&self, __arg_0: &Variable) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Debug for Variable[src]
impl Debug for Variablefn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Variable> for Expression[src]
impl From<Variable> for Expressionfn from(v: Variable) -> Expression[src]
fn from(v: Variable) -> ExpressionPerforms the conversion.