Closed lukepighetti closed 2 years ago
Following the semantics from StockPiece field quantity, I would like to request the addition of a similar field on CutPiece.
StockPiece
quantity
CutPiece
This would allow downstream code to specify multiples of the same cut piece without resorting to copying or iteration.
let left = CutPiece { external_id: Some(2), width: 500, length: 1250, can_rotate: false, pattern_direction: PatternDirection::ParallelToLength, }; let right = CutPiece { external_id: Some(2), width: 500, length: 1250, can_rotate: false, pattern_direction: PatternDirection::ParallelToLength, };
let side = CutPiece { quantity: Some(2), external_id: Some(2), width: 500, length: 1250, can_rotate: false, pattern_direction: PatternDirection::ParallelToLength, };
I agree that this would be nice to have. I'll look into adding it when I get a chance.
Following the semantics from
StockPiece
fieldquantity
, I would like to request the addition of a similar field onCutPiece
.This would allow downstream code to specify multiples of the same cut piece without resorting to copying or iteration.
Present (0.3.0)
Future