pub enum Encoding {
Png,
Jpeg {
quality: u8,
background: Color,
},
WebpLossless,
}Expand description
Encoding is the file encode writes, with its format’s settings.
Variants§
Png
Png is an RGBA PNG, transparency kept.
Jpeg
Jpeg is a JPEG at quality, from 1 to 100, laid over background, since a JPEG holds
no transparency; the background’s own alpha is ignored.
Fields
WebpLossless
WebpLossless is a lossless WebP, transparency kept.
Trait Implementations§
impl Copy for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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