[][src]Struct cut_optimizer_2d::CutPiece

pub struct CutPiece {
    pub external_id: usize,
    pub width: usize,
    pub length: usize,
    pub pattern_direction: PatternDirection,
    pub can_rotate: bool,
}

A rectangular piece that needs to be cut from a stock piece.

Fields

external_id: usize

ID to be used by the caller to match up result cut pieces with the original cut piece. This ID has no meaning to the optimizer so it can be set to 0 if not needed.

width: usize

Width of this rectangular cut piece.

length: usize

Length of this rectangular cut piece.

pattern_direction: PatternDirection

Pattern direction of this cut piece.

can_rotate: bool

Whether or not the optimizer is allowed to rotate this piece to make it fit.

Trait Implementations

impl Clone for CutPiece[src]

impl Debug for CutPiece[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>,