Enum image::ImageOutputFormat
source · [−]#[non_exhaustive]
pub enum ImageOutputFormat {
Png,
Jpeg(u8),
Pnm(PnmSubtype),
Gif,
Ico,
Bmp,
Farbfeld,
Tga,
OpenExr,
Tiff,
Unsupported(String),
}
Expand description
An enumeration of supported image formats for encoding.
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
An Image in PNG Format
Jpeg(u8)
An Image in JPEG Format with specified quality
Pnm(PnmSubtype)
An Image in one of the PNM Formats
Gif
An Image in GIF Format
Ico
An Image in ICO Format
Bmp
An Image in BMP Format
Farbfeld
An Image in farbfeld Format
Tga
An Image in TGA Format
OpenExr
An Image in OpenEXR Format
Tiff
An Image in TIFF Format
Unsupported(String)
A value for signalling an error: An unsupported format was requested
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ImageOutputFormat
impl Send for ImageOutputFormat
impl Sync for ImageOutputFormat
impl Unpin for ImageOutputFormat
impl UnwindSafe for ImageOutputFormat
Blanket Implementations
Mutably borrows from an owned value. Read more