pub enum FileType {
Show 112 variants
Jpeg,
Tiff,
Png,
Gif,
Bmp,
WebP,
Heif,
Avif,
Psd,
Jp2,
J2c,
Jxl,
Jxr,
Flif,
Bpg,
Exr,
Ico,
DjVu,
Xcf,
Pcx,
Pict,
Psp,
Hdr,
Rwz,
Btf,
Mng,
Cr2,
Cr3,
Crw,
Nef,
Arw,
Sr2,
Srf,
Orf,
Rw2,
Dng,
Raf,
Pef,
Dcr,
Mrw,
Erf,
Fff,
Iiq,
Rwl,
Mef,
Srw,
X3f,
Gpr,
Arq,
ThreeFR,
Crm,
Mp4,
QuickTime,
Avi,
Mkv,
WebM,
Wmv,
Asf,
Flv,
Mxf,
M2ts,
Mpeg,
ThreeGP,
RealMedia,
R3d,
Dvb,
Lrv,
Mqv,
F4v,
Wtv,
DvrMs,
Mp3,
Flac,
Ogg,
Wav,
Aiff,
Aac,
Opus,
Mpc,
Ape,
WavPack,
Ofr,
Dsf,
Audible,
RealAudio,
Wma,
M4a,
Pdf,
PostScript,
Doc,
Docx,
Xls,
Xlsx,
Ppt,
Pptx,
InDesign,
Rtf,
Zip,
Rar,
SevenZ,
Gzip,
Xmp,
Mie,
Exv,
Vrd,
Icc,
Html,
Exe,
Font,
Swf,
Dicom,
Fits,
}Expand description
Supported file types and their detection logic.
Mirrors ExifTool’s %fileTypeLookup, %magicNumber, and %mimeType. Covers all 150+ formats supported by ExifTool. Known file types that exiftool can process.
Variants§
Jpeg
Tiff
Png
Gif
Bmp
WebP
Heif
Avif
Psd
Jp2
J2c
Jxl
Jxr
Flif
Bpg
Exr
Ico
DjVu
Xcf
Pcx
Pict
Psp
Hdr
Rwz
Btf
Mng
Cr2
Cr3
Crw
Nef
Arw
Sr2
Srf
Orf
Rw2
Dng
Raf
Pef
Dcr
Mrw
Erf
Fff
Iiq
Rwl
Mef
Srw
X3f
Gpr
Arq
ThreeFR
Crm
Mp4
QuickTime
Avi
Mkv
WebM
Wmv
Asf
Flv
Mxf
M2ts
Mpeg
ThreeGP
RealMedia
R3d
Dvb
Lrv
Mqv
F4v
Wtv
DvrMs
Mp3
Flac
Ogg
Wav
Aiff
Aac
Opus
Mpc
Ape
WavPack
Ofr
Dsf
Audible
RealAudio
Wma
M4a
PostScript
Doc
Docx
Xls
Xlsx
Ppt
Pptx
InDesign
Rtf
Zip
Rar
SevenZ
Gzip
Xmp
Mie
Exv
Vrd
Icc
Html
Exe
Font
Swf
Dicom
Fits
Implementations§
Source§impl FileType
impl FileType
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Human-readable file type description.
Sourcepub fn extensions(self) -> &'static [&'static str]
pub fn extensions(self) -> &'static [&'static str]
Common file extensions for this type.
Trait Implementations§
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnsafeUnpin for FileType
impl UnwindSafe for FileType
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