Struct guillotiere::AllocatorOptions [−][src]
#[repr(C)]pub struct AllocatorOptions { pub alignment: Size, pub small_size_threshold: i32, pub large_size_threshold: i32, }
Expand description
Options to tweak the behavior of the atlas allocator.
Fields
alignment: Size
Round the rectangle sizes up to a multiple of this value.
Width and height alignments must be superior to zero.
Default value: (1, 1),
small_size_threshold: i32
Value below which a size is considered small.
This is value is used to speed up the storage and lookup of free rectangles.
This value must be inferior or equal to large_size_threshold
Default value: 32,
large_size_threshold: i32
Value above which a size is considered large.
This is value is used to speed up the storage and lookup of free rectangles.
This value must be inferior or equal to large_size_threshold
Default value: 256,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AllocatorOptions
impl Send for AllocatorOptions
impl Sync for AllocatorOptions
impl Unpin for AllocatorOptions
impl UnwindSafe for AllocatorOptions
Blanket Implementations
Mutably borrows from an owned value. Read more