pub enum AllocationStrategy {
FirstFit,
BestFit,
LeastUsed,
RoundRobin,
}Expand description
Strategy for allocating images across multiple atlases.
Variants§
FirstFit
Try atlases in order until one has space.
BestFit
Choose the atlas with the smallest remaining space that can fit the image.
LeastUsed
Prefer the atlas with the lowest usage percentage.
RoundRobin
Cycle through atlases in round-robin fashion.
Trait Implementations§
Source§impl Clone for AllocationStrategy
impl Clone for AllocationStrategy
Source§fn clone(&self) -> AllocationStrategy
fn clone(&self) -> AllocationStrategy
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 AllocationStrategy
Source§impl Debug for AllocationStrategy
impl Debug for AllocationStrategy
Source§impl Default for AllocationStrategy
impl Default for AllocationStrategy
Source§fn default() -> AllocationStrategy
fn default() -> AllocationStrategy
Returns the “default value” for a type. Read more
impl Eq for AllocationStrategy
Source§impl PartialEq for AllocationStrategy
impl PartialEq for AllocationStrategy
impl StructuralPartialEq for AllocationStrategy
Auto Trait Implementations§
impl Freeze for AllocationStrategy
impl RefUnwindSafe for AllocationStrategy
impl Send for AllocationStrategy
impl Sync for AllocationStrategy
impl Unpin for AllocationStrategy
impl UnsafeUnpin for AllocationStrategy
impl UnwindSafe for AllocationStrategy
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