pub struct OptimizerOptions { /* private fields */ }Expand description
Struct containing the configurable options for the optimizer.
Implementations§
Source§impl OptimizerOptions
impl OptimizerOptions
Sourcepub fn set_optimize_datacored_tables(&mut self, enable: bool) -> &mut Self
pub fn set_optimize_datacored_tables(&mut self, enable: bool) -> &mut Self
Allow the optimizer to optimize datacored tables.
THIS IS NOT RECOMMENDED, as datacored tables usually are they way they are for a reason.
Sourcepub fn set_remove_unused_art_sets(&mut self, enable: bool) -> &mut Self
pub fn set_remove_unused_art_sets(&mut self, enable: bool) -> &mut Self
Allow the optimizer to remove unused art sets in Portrait Settings files.
Only use this after you have confirmed the unused art sets are actually unused and not caused by a typo.
Sourcepub fn set_remove_unused_variants(&mut self, enable: bool) -> &mut Self
pub fn set_remove_unused_variants(&mut self, enable: bool) -> &mut Self
Allow the optimizer to remove unused variants from art sets in Portrait Settings files.
Only use this after you have confirmed the unused variants are actually unused and not caused by a typo.
Sourcepub fn set_remove_empty_masks(&mut self, enable: bool) -> &mut Self
pub fn set_remove_empty_masks(&mut self, enable: bool) -> &mut Self
Allow the optimizer to remove empty masks in Portrait Settings file, reducing their side.
Ingame there’s no difference between an empty mask and an invalid one, so it’s better to remove them to reduce their size.
Trait Implementations§
Source§impl Clone for OptimizerOptions
impl Clone for OptimizerOptions
Source§fn clone(&self) -> OptimizerOptions
fn clone(&self) -> OptimizerOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptimizerOptions
impl Debug for OptimizerOptions
Source§impl Default for OptimizerOptions
impl Default for OptimizerOptions
Source§fn default() -> OptimizerOptions
fn default() -> OptimizerOptions
Source§impl<'de> Deserialize<'de> for OptimizerOptions
impl<'de> Deserialize<'de> for OptimizerOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for OptimizerOptions
impl RefUnwindSafe for OptimizerOptions
impl Send for OptimizerOptions
impl Sync for OptimizerOptions
impl Unpin for OptimizerOptions
impl UnwindSafe for OptimizerOptions
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
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>
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>
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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.