pub enum ImageFormat {
Png,
Jpeg,
WebP,
Gif,
Bmp,
Svg,
Heic,
Avif,
RawRgba,
}Expand description
Encoded image container format identified by magic bytes or file extension.
Variants§
Png
Portable Network Graphics (.png).
Jpeg
Joint Photographic Experts Group (.jpg, .jpeg).
WebP
Google WebP (.webp).
Gif
Graphics Interchange Format (.gif).
Bmp
Windows Device Independent Bitmap (.bmp).
Svg
Scalable Vector Graphics (.svg).
Heic
High Efficiency Image Container (.heic, .heif).
Avif
AV1 Image File Format (.avif).
RawRgba
Uncompressed RGBA8 pixel buffer.
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
impl Copy for ImageFormat
Source§impl Debug for ImageFormat
impl Debug for ImageFormat
Source§impl Default for ImageFormat
impl Default for ImageFormat
Source§impl<'de> Deserialize<'de> for ImageFormat
impl<'de> Deserialize<'de> for ImageFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageFormat
Source§impl Hash for ImageFormat
impl Hash for ImageFormat
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
Source§impl Serialize for ImageFormat
impl Serialize for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Forget for ImageFormat
impl Freeze for ImageFormat
impl Move for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more