pub enum PackingAlgorithm {
Shelf,
MaxRects,
Skyline,
}Expand description
Packing algorithm selection.
Variants§
Shelf
Left-to-right shelf packing (existing behavior).
MaxRects
Best Short-Side Fit (BSSF) MaxRects algorithm.
Skyline
Skyline algorithm: tracks a fill-level skyline for better utilization.
Trait Implementations§
Source§impl Clone for PackingAlgorithm
impl Clone for PackingAlgorithm
Source§fn clone(&self) -> PackingAlgorithm
fn clone(&self) -> PackingAlgorithm
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 moreimpl Copy for PackingAlgorithm
Source§impl Debug for PackingAlgorithm
impl Debug for PackingAlgorithm
Source§impl Default for PackingAlgorithm
impl Default for PackingAlgorithm
Source§fn default() -> PackingAlgorithm
fn default() -> PackingAlgorithm
Returns the “default value” for a type. Read more
impl Eq for PackingAlgorithm
Source§impl PartialEq for PackingAlgorithm
impl PartialEq for PackingAlgorithm
Source§fn eq(&self, other: &PackingAlgorithm) -> bool
fn eq(&self, other: &PackingAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackingAlgorithm
Auto Trait Implementations§
impl Freeze for PackingAlgorithm
impl RefUnwindSafe for PackingAlgorithm
impl Send for PackingAlgorithm
impl Sync for PackingAlgorithm
impl Unpin for PackingAlgorithm
impl UnsafeUnpin for PackingAlgorithm
impl UnwindSafe for PackingAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more