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
PNGAn Image in PNG Format
JPEG(u8)An Image in JPEG Format with specified quality
PNM(PNMSubtype)An Image in one of the PNM Formats
GIFAn Image in GIF Format
ICOAn Image in ICO Format
BMPAn Image in BMP Format
Unsupported(String)A value for signalling an error: An unsupported format was requested
Trait Implementations
impl Clone for ImageOutputFormat[src]
impl Clone for ImageOutputFormatfn clone(&self) -> ImageOutputFormat[src]
fn clone(&self) -> ImageOutputFormatReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for ImageOutputFormat[src]
impl PartialEq for ImageOutputFormatfn eq(&self, other: &ImageOutputFormat) -> bool[src]
fn eq(&self, other: &ImageOutputFormat) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ImageOutputFormat) -> bool[src]
fn ne(&self, other: &ImageOutputFormat) -> boolThis method tests for !=.
impl Eq for ImageOutputFormat[src]
impl Eq for ImageOutputFormatimpl Debug for ImageOutputFormat[src]
impl Debug for ImageOutputFormatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ImageFormat> for ImageOutputFormat[src]
impl From<ImageFormat> for ImageOutputFormatfn from(fmt: ImageFormat) -> Self[src]
fn from(fmt: ImageFormat) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ImageOutputFormat
impl Send for ImageOutputFormatimpl Sync for ImageOutputFormat
impl Sync for ImageOutputFormat