pub struct ResultCutPiece {
pub external_id: Option<usize>,
pub x: usize,
pub y: usize,
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub is_rotated: bool,
}Expand description
A cut piece that has been placed in a solution by the optimizer.
Fields§
§external_id: Option<usize>ID that matches the one on the cut piece that was passed to the optimizer.
x: usizeX location of the left side of this cut piece within the stock piece.
y: usizeY location of the (bottom or top) side of this cut piece within the stock piece.
width: usizeWidth of this cut piece.
length: usizeLength of this cut piece.
pattern_direction: PatternDirectionPattern direction of this cut piece.
is_rotated: boolWhether or not this cut piece was rotated 90 degrees by the optimizer from it’s original oriorientation.
Trait Implementations§
Source§impl Clone for ResultCutPiece
impl Clone for ResultCutPiece
Source§fn clone(&self) -> ResultCutPiece
fn clone(&self) -> ResultCutPiece
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResultCutPiece
impl Debug for ResultCutPiece
Source§impl From<&ResultCutPiece> for Rect
impl From<&ResultCutPiece> for Rect
Source§fn from(cut_piece: &ResultCutPiece) -> Self
fn from(cut_piece: &ResultCutPiece) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResultCutPiece
impl PartialEq for ResultCutPiece
impl Eq for ResultCutPiece
impl StructuralPartialEq for ResultCutPiece
Auto Trait Implementations§
impl Freeze for ResultCutPiece
impl RefUnwindSafe for ResultCutPiece
impl Send for ResultCutPiece
impl Sync for ResultCutPiece
impl Unpin for ResultCutPiece
impl UnwindSafe for ResultCutPiece
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