Struct cut_optimizer_2d::StockPiece [−][src]
pub struct StockPiece {
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub price: usize,
}Expand description
A rectangular stock piece that is available to cut one or more cut pieces from.
Fields
width: usizeWidth of rectangular stock piece.
length: usizeLength of rectangular stock piece.
pattern_direction: PatternDirectionPattern direction of stock piece.
price: usizePrice to use to optimize for price when not all stock pieces are the same price per unit area. If optimizing for less waste instead, price can be set to 0 for all stock pieces.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StockPieceimpl Send for StockPieceimpl Sync for StockPieceimpl Unpin for StockPieceimpl UnwindSafe for StockPieceBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V