Enum image::ImageOutputFormat [−][src]
pub enum ImageOutputFormat {
Png,
Jpeg(u8),
Pnm(PNMSubtype),
Gif,
Ico,
Bmp,
Farbfeld,
Tga,
Unsupported(String),
// some variants omitted
}
Expand description
An enumeration of supported image formats for encoding.
Variants
Png
An Image in PNG Format
Jpeg(u8)
Tuple Fields
0: u8
An Image in JPEG Format with specified quality
Pnm(PNMSubtype)
Tuple Fields
0: 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
Unsupported(String)
Tuple Fields
0: 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