[][src]Struct guillotiere::AllocatorOptions

#[repr(C)]
pub struct AllocatorOptions { pub snap_size: i32, pub small_size_threshold: i32, pub large_size_threshold: i32, }

Options to tweak the behavior of the atlas allocator.

Fields

snap_size: i32

Round the rectangle sizes up to a multiple of this value.

This value must be superior to zero.

Default value: 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

impl Copy for AllocatorOptions[src]

impl PartialEq<AllocatorOptions> for AllocatorOptions[src]

impl Default for AllocatorOptions[src]

impl Clone for AllocatorOptions[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for AllocatorOptions[src]

impl Debug for AllocatorOptions[src]

impl Hash for AllocatorOptions[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]