#[non_exhaustive]
pub enum ImFormat {
Show 18 variants
GIF,
PNG,
BMP,
JPEG,
WEBP,
QOI,
PSD,
XCF,
ICO,
AVIF,
TIFF,
OpenEXR,
PCX,
TGA,
DDS,
HEIF,
JP2K,
DIB,
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
GIF
Graphics Interchange Format files in version GIF87a or GIF89a.
PNG
Portable Network Graphics files. Requires the first chunk to be IHDR.
BMP
Windows Bitmap, both for Windows 2.0 (BITMAPCOREHEADER) and for newer versions (BITMAPINFOHEADER).
JPEG
Joint Photographic Experts Group files.
WEBP
WebP files. Supported sub-formats: VP8 , VP8L, VP8X.
QOI
Quite OK Image format files.
PSD
Adobe Photoshop files.
XCF
GIMP files.
ICO
ICO files can contain multiple images. This returns the dimensions of the biggest image in the file.
AVIF
AV1 Image File Format.
TIFF
Tag Image File Format. Supports big endian and little endian TIFF files.
OpenEXR
OpenEXR files.
PCX
PiCture eXchange files.
TGA
TARGA (Truevision Advanced Raster Graphics Adapter) files.
Only if the file ends in b"TRUEVISION-XFILE.\0" since otherwise there
is no good way to detect TGA files. Note that this string is optional
to this file format and thus there can be TGA files that aren’t supported
by this library.
DDS
DirectDraw Surface files.
HEIF
HEIC/HEIF files. These are extremely similar to AVIF and use the same parsing code.
JP2K
JPEG 2000 files.
DIB
Device-Independent Bitmap files.
Implementations
Trait Implementations
impl Copy for ImFormat
impl StructuralPartialEq for ImFormat
Auto Trait Implementations
impl RefUnwindSafe for ImFormat
impl Send for ImFormat
impl Sync for ImFormat
impl Unpin for ImFormat
impl UnwindSafe for ImFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more