pub struct PackerConfigBuilder { /* private fields */ }Expand description
Builder for PackerConfig for ergonomic construction.
Implementations§
Source§impl PackerConfigBuilder
impl PackerConfigBuilder
pub fn new() -> Self
pub fn with_max_dimensions(self, w: u32, h: u32) -> Self
pub fn allow_rotation(self, v: bool) -> Self
pub fn force_max_dimensions(self, v: bool) -> Self
pub fn border_padding(self, v: u32) -> Self
pub fn texture_padding(self, v: u32) -> Self
pub fn texture_extrusion(self, v: u32) -> Self
pub fn trim(self, v: bool) -> Self
pub fn trim_threshold(self, v: u8) -> Self
pub fn outlines(self, v: bool) -> Self
pub fn pow2(self, v: bool) -> Self
pub fn square(self, v: bool) -> Self
pub fn family(self, v: AlgorithmFamily) -> Self
pub fn skyline_heuristic(self, v: SkylineHeuristic) -> Self
pub fn mr_heuristic(self, v: MaxRectsHeuristic) -> Self
pub fn g_choice(self, v: GuillotineChoice) -> Self
pub fn g_split(self, v: GuillotineSplit) -> Self
pub fn auto_mode(self, v: AutoMode) -> Self
pub fn sort_order(self, v: SortOrder) -> Self
pub fn time_budget_ms(self, v: Option<u64>) -> Self
pub fn parallel(self, v: bool) -> Self
pub fn mr_reference(self, v: bool) -> Self
pub fn auto_mr_ref_time_ms_threshold(self, v: Option<u64>) -> Self
pub fn auto_mr_ref_input_threshold(self, v: Option<usize>) -> Self
pub fn use_waste_map(self, v: bool) -> Self
pub fn transparent_policy(self, v: TransparentPolicy) -> Self
pub fn build(self) -> PackerConfig
Trait Implementations§
Source§impl Clone for PackerConfigBuilder
impl Clone for PackerConfigBuilder
Source§fn clone(&self) -> PackerConfigBuilder
fn clone(&self) -> PackerConfigBuilder
Returns a duplicate 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 PackerConfigBuilder
impl Debug for PackerConfigBuilder
Source§impl Default for PackerConfigBuilder
impl Default for PackerConfigBuilder
Source§fn default() -> PackerConfigBuilder
fn default() -> PackerConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PackerConfigBuilder
impl RefUnwindSafe for PackerConfigBuilder
impl Send for PackerConfigBuilder
impl Sync for PackerConfigBuilder
impl Unpin for PackerConfigBuilder
impl UnwindSafe for PackerConfigBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().