Enum image::ImageOutputFormat
[−]
[src]
pub enum ImageOutputFormat { PNG, JPEG(u8), PNM(PNMSubtype), GIF, ICO, BMP, Unsupported(String), }
An enumeration of supported image formats for encoding.
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
Unsupported(String)
A value for signalling an error: An unsupported format was requested
Trait Implementations
impl Clone for ImageOutputFormat
[src]
fn clone(&self) -> ImageOutputFormat
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ImageOutputFormat
[src]
fn eq(&self, __arg_0: &ImageOutputFormat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImageOutputFormat) -> bool
[src]
This method tests for !=
.
impl Eq for ImageOutputFormat
[src]
impl Debug for ImageOutputFormat
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<ImageFormat> for ImageOutputFormat
[src]
fn from(fmt: ImageFormat) -> Self
[src]
Performs the conversion.