pub struct ConstraintBuilder { /* private fields */ }
Expand description

Used to capture constraint properties.

Implementations

The ConstraintBuilder is used to crate the constraint porperties of an entity.

Constraints will provide properties that are used to determine the size requirements of an entity. It will store minimum and maximim values for its height and width, next to the current values.

Creates a new ConstraintBuilder with default values.

Inserts a new width.

Inserts a new height.

Inserts a new size.

Inserts a new min_width.

Inserts a new min_height.

Inserts a new min_size.

Inserts a new max_width.

Inserts a new max_height.

Inserts a new min_size.

Builds the constraint.

Trait Implementations

Returns the “default value” for a type. Read more

Converts to this type from the input type.

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.