#[non_exhaustive]pub enum OptimizeMode {
None,
Auto,
Lossless,
Lossy,
}Expand description
Optimization policy applied near the final encoding stage.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Keep the current encoding behavior with no extra optimization work.
Auto
Pick the most appropriate optimization strategy for the target format.
Lossless
Only use lossless size-reduction techniques.
Lossy
Allow controlled quality loss for smaller output files.
Implementations§
Trait Implementations§
Source§impl Clone for OptimizeMode
impl Clone for OptimizeMode
Source§fn clone(&self) -> OptimizeMode
fn clone(&self) -> OptimizeMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptimizeMode
Source§impl Debug for OptimizeMode
impl Debug for OptimizeMode
Source§impl Default for OptimizeMode
impl Default for OptimizeMode
Source§fn default() -> OptimizeMode
fn default() -> OptimizeMode
Returns the “default value” for a type. Read more
Source§impl Display for OptimizeMode
impl Display for OptimizeMode
impl Eq for OptimizeMode
Source§impl FromStr for OptimizeMode
impl FromStr for OptimizeMode
Source§impl PartialEq for OptimizeMode
impl PartialEq for OptimizeMode
impl StructuralPartialEq for OptimizeMode
Auto Trait Implementations§
impl Freeze for OptimizeMode
impl RefUnwindSafe for OptimizeMode
impl Send for OptimizeMode
impl Sync for OptimizeMode
impl Unpin for OptimizeMode
impl UnsafeUnpin for OptimizeMode
impl UnwindSafe for OptimizeMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more