Enum bindet::types::FileType [−][src]
pub enum FileType {
Show 31 variants
Zip,
Rar,
Rar5,
Tar,
Png,
Jpg,
_7z,
Opus,
Vorbis,
Mp3,
Webp,
Flac,
Matroska,
Wasm,
Class,
Tasty,
Mach,
Elf,
Wav,
Avi,
Aiff,
Tiff,
Sqlite3,
Ico,
Dalvik,
Pdf,
DosMzExecutable,
DosZmExecutable,
Xcf,
Gif,
Bmp,
}Expand description
FileType
Variants
Zip File format, this includes:
- jar
- docx/xlsx/pptx
- Apk
- Aar
- odt/ods/odp
Tar archive (regardless the compression)
Opus Ogg
Vorbis Ogg
All Matroska media containers:
- mkv
- mka
- mks
- mk3d
- webm
WebAssembly
Java class
Scala Tasty
Mach-O (untested)
Executable and Linkable Format
.so*nix executable
Waveform Audio File Format
Audio Interchange File Format
- aiff
- aif
- aifc
- snd
- iff
Tagged Image File Format
- Tiff
- Tif
SQLite 3 Database
Dalvik (untested)
PDF Document
DOS MZ Executable
.exe.dll
DOS ZM Executable
.exe
Gimp XCF
Gif
Bitmap
Implementations
Trait Implementations
Smallest block size to start with and try to detect this file Read more
Returns the maximum block size to try when ideal block size
is not enough, along with the filetypes that has large block sizes. Read more
Returns the maximum block size to try when ideal block size
is not enough, along with the filetypes that has large block sizes. Read more
Largest block size to start with and try to detect this file Read more
Tests if the FileType magic number can be found in the bytes slice.
Auto Trait Implementations
impl RefUnwindSafe for FileType
impl UnwindSafe for FileType
Blanket Implementations
Mutably borrows from an owned value. Read more