Struct packr2::PackerConfig
source · [−]Expand description
Configuration for a texture packer.
Fields
max_width: u32Max width of the packed image. Default value is 1024.
max_height: u32Max height of the packed image. Default value is 1024.
allow_flipping: boolTrue to allow rotation of the input images. Default value is true. Images rotated will be
rotated 90 degrees clockwise.
Trait Implementations
sourceimpl Clone for PackerConfig
impl Clone for PackerConfig
sourcefn clone(&self) -> PackerConfig
fn clone(&self) -> PackerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PackerConfig
impl Debug for PackerConfig
sourceimpl Default for PackerConfig
impl Default for PackerConfig
sourcefn default() -> PackerConfig
fn default() -> PackerConfig
Returns the “default value” for a type. Read more
impl Copy for PackerConfig
Auto Trait Implementations
impl RefUnwindSafe for PackerConfig
impl Send for PackerConfig
impl Sync for PackerConfig
impl Unpin for PackerConfig
impl UnwindSafe for PackerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more