pub enum EncodingProfile {
Fast,
Balanced,
Best,
Web,
Archive,
}Expand description
Encoding profile for different use cases.
Variants§
Fast
Fastest encoding (lowest compression).
Balanced
Balanced speed and compression.
Best
Best compression (slowest).
Web
Web-optimized (good compression, reasonable speed).
Archive
Archive quality (maximum compression).
Implementations§
Source§impl EncodingProfile
impl EncodingProfile
Sourcepub const fn to_config(self) -> EncoderConfig
pub const fn to_config(self) -> EncoderConfig
Get encoder config for this profile.
Sourcepub fn create_encoder(self) -> PngEncoder
pub fn create_encoder(self) -> PngEncoder
Create encoder from profile.
Trait Implementations§
Source§impl Clone for EncodingProfile
impl Clone for EncodingProfile
Source§fn clone(&self) -> EncodingProfile
fn clone(&self) -> EncodingProfile
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 EncodingProfile
impl Debug for EncodingProfile
Source§impl PartialEq for EncodingProfile
impl PartialEq for EncodingProfile
impl Copy for EncodingProfile
impl Eq for EncodingProfile
impl StructuralPartialEq for EncodingProfile
Auto Trait Implementations§
impl Freeze for EncodingProfile
impl RefUnwindSafe for EncodingProfile
impl Send for EncodingProfile
impl Sync for EncodingProfile
impl Unpin for EncodingProfile
impl UnsafeUnpin for EncodingProfile
impl UnwindSafe for EncodingProfile
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