[][src]Struct cut_optimizer_2d::ResultCutPiece

pub struct ResultCutPiece {
    pub external_id: usize,
    pub x: usize,
    pub y: usize,
    pub width: usize,
    pub length: usize,
    pub pattern_direction: PatternDirection,
    pub is_rotated: bool,
}

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

Fields

external_id: 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

impl Clone for ResultCutPiece[src]

impl Debug for ResultCutPiece[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,