pub struct ResultStockPiece {
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub cut_pieces: Vec<ResultCutPiece>,
pub waste_pieces: Vec<Rect>,
pub price: usize,
}Expand description
Stock piece that was used by the optimizer to get one or more cut pieces.
Fields§
§width: usizeWidth of this stock piece.
length: usizeLength of this stock piece.
pattern_direction: PatternDirectionPattern direction of this stock piece.
cut_pieces: Vec<ResultCutPiece>Cut pieces to cut from this stock piece.
waste_pieces: Vec<Rect>Waste pieces that remain after cutting the cut pieces.
price: usizePrice of stock piece.
Trait Implementations§
Source§impl Clone for ResultStockPiece
impl Clone for ResultStockPiece
Source§fn clone(&self) -> ResultStockPiece
fn clone(&self) -> ResultStockPiece
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 moreAuto Trait Implementations§
impl Freeze for ResultStockPiece
impl RefUnwindSafe for ResultStockPiece
impl Send for ResultStockPiece
impl Sync for ResultStockPiece
impl Unpin for ResultStockPiece
impl UnwindSafe for ResultStockPiece
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