pub struct ShelfAllocatorOptions {
pub alignment: Size2D<i32, UnknownUnit>,
pub vertical_shelves: bool,
pub num_columns: i32,
}Expand description
Options to tweak the behavior of the atlas allocator.
Fields§
§alignment: Size2D<i32, UnknownUnit>Align item sizes to a multiple of this alignment.
Default value: [1, 1] (no alignment).
vertical_shelves: boolUse vertical instead of horizontal shelves.
Default value: false.
num_columns: i32If possible split the allocator’s surface into multiple columns.
Having multiple columns allows having more (smaller shelves).
Default value: 1.
Trait Implementations§
Source§impl Clone for AllocatorOptions
impl Clone for AllocatorOptions
Source§fn clone(&self) -> AllocatorOptions
fn clone(&self) -> AllocatorOptions
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 AllocatorOptions
impl Debug for AllocatorOptions
Source§impl Default for AllocatorOptions
impl Default for AllocatorOptions
Source§fn default() -> AllocatorOptions
fn default() -> AllocatorOptions
Returns the “default value” for a type. Read more
Source§impl Hash for AllocatorOptions
impl Hash for AllocatorOptions
Source§impl PartialEq for AllocatorOptions
impl PartialEq for AllocatorOptions
Source§fn eq(&self, other: &AllocatorOptions) -> bool
fn eq(&self, other: &AllocatorOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AllocatorOptions
impl Eq for AllocatorOptions
impl StructuralPartialEq for AllocatorOptions
Auto Trait Implementations§
impl Freeze for AllocatorOptions
impl RefUnwindSafe for AllocatorOptions
impl Send for AllocatorOptions
impl Sync for AllocatorOptions
impl Unpin for AllocatorOptions
impl UnsafeUnpin for AllocatorOptions
impl UnwindSafe for AllocatorOptions
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