Struct cut_optimizer_2d::StockPiece [−][src]
pub struct StockPiece {
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub price: usize,
pub quantity: Option<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.
quantity: Option<usize>Quantity of this stock piece available for optimization. None means infinite quantity.
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 StockPiece
impl Send for StockPiece
impl Sync for StockPiece
impl Unpin for StockPiece
impl UnwindSafe for StockPiece
Blanket Implementations
Mutably borrows from an owned value. Read more