pub struct PngParameters {
pub quality: u32,
pub force_zopfli: bool,
pub optimization_level: u8,
pub optimize: bool,
}Expand description
Struct representing parameters for PNG compression.
Fields:
quality: Quality of the PNG image (0-100)force_zopfli: Whether to force the use of Zopfli compression (can be very slow)optimization_level: Optimization level for PNG compression (0-6)optimize: Whether to use lossless optimization for PNG
Fields§
§quality: u32§force_zopfli: bool§optimization_level: u8§optimize: boolTrait Implementations§
Source§impl Clone for PngParameters
impl Clone for PngParameters
impl Copy for PngParameters
Auto Trait Implementations§
impl Forget for PngParameters
impl Freeze for PngParameters
impl RefUnwindSafe for PngParameters
impl Send for PngParameters
impl Sync for PngParameters
impl Unpin for PngParameters
impl UnsafeUnpin for PngParameters
impl UnwindSafe for PngParameters
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