Struct libparted::Constraint [] [src]

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

Methods

impl<'a> Constraint<'a>
[src]

[src]

A convenience wrapper for Constraint::init().

Allocates a new piece of memory and initializes the constraint.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Duplicates a constraint, if possible.

[src]

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

[src]

Check whether geometry satisfies the constraint.

[src]

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.

[src]

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

impl<'a> Drop for Constraint<'a>
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a> !Send for Constraint<'a>

impl<'a> !Sync for Constraint<'a>