Enum image::ImageOutputFormat
source · pub enum ImageOutputFormat {
PNG,
JPEG(u8),
PNM(PNMSubtype),
GIF,
ICO,
BMP,
Unsupported(String),
}
Expand description
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
sourceimpl Clone for ImageOutputFormat
impl Clone for ImageOutputFormat
sourcefn clone(&self) -> ImageOutputFormat
fn clone(&self) -> ImageOutputFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageOutputFormat
impl Debug for ImageOutputFormat
sourceimpl From<ImageFormat> for ImageOutputFormat
impl From<ImageFormat> for ImageOutputFormat
sourcefn from(fmt: ImageFormat) -> Self
fn from(fmt: ImageFormat) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ImageOutputFormat> for ImageOutputFormat
impl PartialEq<ImageOutputFormat> for ImageOutputFormat
sourcefn eq(&self, other: &ImageOutputFormat) -> bool
fn eq(&self, other: &ImageOutputFormat) -> bool
impl Eq for ImageOutputFormat
impl StructuralEq for ImageOutputFormat
impl StructuralPartialEq for ImageOutputFormat
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more