pub struct StripStats {
pub strip_index: usize,
pub used_length: f64,
pub piece_area: f64,
pub piece_count: usize,
pub strip_width: f64,
pub strip_height: f64,
}Expand description
Statistics for a single strip/boundary in multi-strip packing.
Fields§
§strip_index: usizeIndex of the strip (0-based).
used_length: f64Used length of the strip (max X extent of pieces).
piece_area: f64Total area of pieces placed on this strip.
piece_count: usizeNumber of pieces placed on this strip.
strip_width: f64Strip width (height dimension for horizontal strips).
strip_height: f64Strip height (or max possible length).
Trait Implementations§
Source§impl Clone for StripStats
impl Clone for StripStats
Source§fn clone(&self) -> StripStats
fn clone(&self) -> StripStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StripStats
impl Debug for StripStats
Source§impl Default for StripStats
impl Default for StripStats
Source§fn default() -> StripStats
fn default() -> StripStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StripStats
impl RefUnwindSafe for StripStats
impl Send for StripStats
impl Sync for StripStats
impl Unpin for StripStats
impl UnsafeUnpin for StripStats
impl UnwindSafe for StripStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.