Struct guillotiere::AllocatorOptions
source · #[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§
source§impl Clone for AllocatorOptions
impl Clone for AllocatorOptions
source§fn clone(&self) -> AllocatorOptions
fn clone(&self) -> AllocatorOptions
Returns a copy of the value. Read more
1.0.0 · 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§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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AllocatorOptions
impl Eq for AllocatorOptions
impl StructuralEq for AllocatorOptions
impl StructuralPartialEq for AllocatorOptions
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§
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