Struct libparted::Constraint[][src]

pub struct Constraint<'a> { /* fields omitted */ }

Implementations

A convenience wrapper for Constraint::init().

Allocates a new piece of memory and initializes the constraint.

Return a constraint that requires a region to be entirely contained inside max.

Return a constraint that requires a region to be entirely contained inside min.

Return a constraint that requires a region to be entirely contained inside min and `max’.

Initializes a pre-allocated piece of memory to contain a constraint with the supplied default values.

Duplicates a constraint, if possible.

If the supplied constraint intersects with our constraint, a constraint will be returned with the computed solution.

Check whether geometry satisfies the constraint.

Find the largest region that satisfies a constraint.Alignment

There might be more than one solution. This function makes no guarantees about which solutions it will choose in this case.

Return the nearest region to geom that satisfies the constraint.

Note:

Nearest is somewhat ambiguous. This function makes no guarantees about how this ambiguity is resolved.

Trait Implementations

Executes the destructor for this 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

Performs the conversion.

Performs the conversion.

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.