Struct cassowary::Constraint [] [src]

pub struct Constraint(_);

A constraint, consisting of an equation governed by an expression and a relational operator, and an associated strength.

Methods

impl Constraint
[src]

[src]

Construct a new constraint from an expression, a relational operator and a strength. This corresponds to the equation e op 0.0, e.g. x + y >= 0.0. For equations with a non-zero right hand side, subtract it from the equation to give a zero right hand side.

[src]

The expression of the left hand side of the constraint equation.

[src]

The relational operator governing the constraint.

[src]

The strength of the constraint that the solver will use.

Trait Implementations

impl Clone for Constraint
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Constraint
[src]

[src]

Formats the value using the given formatter.

impl Hash for Constraint
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Constraint
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Constraint
[src]