Struct cut_optimizer_2d::ResultStockPiece
source · [−]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: usize
Width of this stock piece.
length: usize
Length of this stock piece.
pattern_direction: PatternDirection
Pattern 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: usize
Price of stock piece.
Trait Implementations
sourceimpl Clone for ResultStockPiece
impl Clone for ResultStockPiece
sourcefn clone(&self) -> ResultStockPiece
fn clone(&self) -> ResultStockPiece
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResultStockPiece
impl Send for ResultStockPiece
impl Sync for ResultStockPiece
impl Unpin for ResultStockPiece
impl UnwindSafe for ResultStockPiece
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more