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

A builder-pattern type to construct Constraint objects.

Implementations§

Create a new ConstraintBuilder.

Build the Constraint.

The constant value to be added to the property::Constraint::source-attribute.

The multiplication factor to be applied to the property::Constraint::source-attribute.

The order relation between the terms of the constraint.

The source of the constraint.

The constraint will set the property::Constraint::target-attribute property of the target using the property::Constraint::source-attribute property of the source.

The attribute of the property::Constraint::source read by the constraint.

The strength of the constraint.

The strength can be expressed either using one of the symbolic values of the ConstraintStrength enumeration, or any positive integer value.

The target of the constraint.

The constraint will set the property::Constraint::target-attribute property of the target using the property::Constraint::source-attribute property of the source widget.

The attribute of the property::Constraint::target set by the constraint.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.