pub enum FileType {
Show 147 variants
Jpeg,
Tiff,
Png,
Gif,
Bmp,
WebP,
Heif,
Avif,
Psd,
Jp2,
J2c,
Jxl,
Jxr,
Flif,
Bpg,
Exr,
Ico,
Jps,
DjVu,
Xcf,
Pcx,
Pict,
Psp,
Hdr,
Rwz,
Btf,
Mng,
PhotoCd,
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,
Czi,
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,
Dss,
Pdf,
PostScript,
Doc,
Docx,
Xls,
Xlsx,
Ppt,
Pptx,
Numbers,
Pages,
Key,
InDesign,
Rtf,
Zip,
Rar,
SevenZ,
Gzip,
Xmp,
Mie,
Exv,
Vrd,
Dr4,
Icc,
Html,
Exe,
Font,
Swf,
Dicom,
Fits,
Mrc,
Moi,
MacOs,
Json,
Pcap,
Pcapng,
Svg,
Pgf,
Xisf,
Torrent,
Mobi,
SonyPmp,
Plist,
Aae,
KyoceraRaw,
Lfp,
PortableFloatMap,
Fpf,
Ods,
Odt,
Odp,
Odg,
Odf,
Odb,
Odi,
Odc,
Eip,
}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
Jps
DjVu
Xcf
Pcx
Pict
Psp
Hdr
Rwz
Btf
Mng
PhotoCd
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
Czi
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
Dss
PostScript
Doc
Docx
Xls
Xlsx
Ppt
Pptx
Numbers
Pages
Key
InDesign
Rtf
Zip
Rar
SevenZ
Gzip
Xmp
Mie
Exv
Vrd
Dr4
Icc
Html
Exe
Font
Swf
Dicom
Fits
Mrc
Moi
MacOs
Json
Pcap
Pcapng
Svg
Pgf
Xisf
Torrent
Mobi
SonyPmp
Plist
Aae
KyoceraRaw
Lfp
PortableFloatMap
Fpf
Ods
Odt
Odp
Odg
Odf
Odb
Odi
Odc
Eip
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