pub enum CriteriaKind {
    Equal(Arc<Weighed<Expression>>, Arc<Weighed<Expression>>),
    Less(Arc<Weighed<Expression>>, Arc<Weighed<Expression>>),
    Greater(Arc<Weighed<Expression>>, Arc<Weighed<Expression>>),
    Inverse(Box<CriteriaKind>),
}
Expand description

Defines the kind and information about criteria the figure must obey.

Variants§

§

Equal(Arc<Weighed<Expression>>, Arc<Weighed<Expression>>)

Equality. Quality rises quickly as two values approach each other, drops quickly as their difference grows.

§

Less(Arc<Weighed<Expression>>, Arc<Weighed<Expression>>)

Less. Quality starts rising on equality.

§

Greater(Arc<Weighed<Expression>>, Arc<Weighed<Expression>>)

Greater. Quality starts rising on equality.

§

Inverse(Box<CriteriaKind>)

Inverts the criteria. The quality is calculated as 1 - the quality of the inverted criteria.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.