Enum image::ImageFormat
source · pub enum ImageFormat {
PNG,
JPEG,
GIF,
WEBP,
PNM,
TIFF,
TGA,
BMP,
ICO,
HDR,
}
Expand description
An enumeration of supported image formats. Not all formats support both encoding and decoding.
Variants
PNG
An Image in PNG Format
JPEG
An Image in JPEG Format
GIF
An Image in GIF Format
WEBP
An Image in WEBP Format
PNM
An Image in general PNM Format
TIFF
An Image in TIFF Format
TGA
An Image in TGA Format
BMP
An Image in BMP Format
ICO
An Image in ICO Format
HDR
An Image in Radiance HDR Format
Trait Implementations
sourceimpl Clone for ImageFormat
impl Clone for ImageFormat
sourcefn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
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 ImageFormat
impl Debug for ImageFormat
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<ImageFormat> for ImageFormat
impl PartialEq<ImageFormat> for ImageFormat
sourcefn eq(&self, other: &ImageFormat) -> bool
fn eq(&self, other: &ImageFormat) -> bool
impl Copy for ImageFormat
impl Eq for ImageFormat
impl StructuralEq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
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