#[non_exhaustive]pub enum ImageFormat {
Png,
Jpeg,
WebP,
}Expand description
The format of rendered pages.
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.
Png
PNG, the default: lossless.
Jpeg
JPEG: small, for photos; see ImageOptions::quality.
WebP
WebP; see ImageOptions::quality.
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
impl Copy for ImageFormat
Source§impl Debug for ImageFormat
impl Debug for ImageFormat
Source§impl Default for ImageFormat
impl Default for ImageFormat
impl Eq for ImageFormat
Source§impl Hash for ImageFormat
impl Hash for ImageFormat
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Forget for ImageFormat
impl Freeze for ImageFormat
impl Move for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
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