Struct cut_optimizer_2d::ResultCutPiece[][src]

pub struct ResultCutPiece {
    pub external_id: Option<usize>,
    pub x: usize,
    pub y: usize,
    pub width: usize,
    pub length: usize,
    pub pattern_direction: PatternDirection,
    pub is_rotated: bool,
}
Expand description

A cut piece that has been placed in a solution by the optimizer.

Fields

external_id: Option<usize>

ID that matches the one on the cut piece that was passed to the optimizer.

x: usize

X location of the left side of this cut piece within the stock piece.

y: usize

Y location of the (bottom or top) side of this cut piece within the stock piece.

width: usize

Width of this cut piece.

length: usize

Length of this cut piece.

pattern_direction: PatternDirection

Pattern direction of this cut piece.

is_rotated: bool

Whether or not this cut piece was rotated 90 degrees by the optimizer from it’s original oriorientation.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.