pub struct CutPiece {
pub quantity: usize,
pub external_id: Option<usize>,
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub can_rotate: bool,
}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.
width: usizeWidth of this rectangular cut piece.
length: usizeLength of this rectangular cut piece.
pattern_direction: PatternDirectionPattern direction of this cut piece.
can_rotate: boolWhether or not the optimizer is allowed to rotate this piece to make it fit.
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