Struct cut_optimizer_2d::CutPiece
source · [−]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 RefUnwindSafe for CutPiece
impl Send for CutPiece
impl Sync for CutPiece
impl Unpin for CutPiece
impl UnwindSafe for CutPiece
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