pub enum CompressionEffort {
Balanced,
Smallest,
}Expand description
JPEG compression effort used during encoding. JPEG compression effort.
This setting is orthogonal to whether the JPEG is encoded as sequential or progressive.
Smallest requests the most size-oriented encoder configuration available
for the chosen scan mode.
With the current mozjpeg-based backend, the additional size-oriented scan
optimization only affects progressive output. Sequential output still
accepts Smallest for API consistency, but currently uses the same
effective backend settings as Balanced.
Variants§
Trait Implementations§
Source§impl Clone for CompressionEffort
impl Clone for CompressionEffort
Source§fn clone(&self) -> CompressionEffort
fn clone(&self) -> CompressionEffort
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 CompressionEffort
impl Debug for CompressionEffort
Source§impl Default for CompressionEffort
impl Default for CompressionEffort
Source§fn default() -> CompressionEffort
fn default() -> CompressionEffort
Returns the “default value” for a type. Read more
Source§impl PartialEq for CompressionEffort
impl PartialEq for CompressionEffort
impl Copy for CompressionEffort
impl Eq for CompressionEffort
impl StructuralPartialEq for CompressionEffort
Auto Trait Implementations§
impl Freeze for CompressionEffort
impl RefUnwindSafe for CompressionEffort
impl Send for CompressionEffort
impl Sync for CompressionEffort
impl Unpin for CompressionEffort
impl UnsafeUnpin for CompressionEffort
impl UnwindSafe for CompressionEffort
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> 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