pub struct CutPiece {
pub quantity: usize,
pub external_id: Option<usize>,
pub length: usize,
}Expand description
A rectangular piece that needs to be cut from a stock piece.
Fields§
§quantity: usizeQuantity of this cut piece.
external_id: Option<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 None if not needed.
length: usizeLength of this cut piece.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CutPiece
impl RefUnwindSafe for CutPiece
impl Send for CutPiece
impl Sync for CutPiece
impl Unpin for CutPiece
impl UnwindSafe for CutPiece
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more