pub enum FileType {
Executable,
NativeLibrary,
Script,
Regular,
}
Variants§
Executable
An executable binary file (like a .exe
).
NativeLibrary
A native, binary library file (like a .so
, .dll
, .a
, .lib
or .o
).
Script
An executable (non-binary) script file (like a .py
or .sh
).
Regular
Any other regular file that is non-executable.
Implementations§
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Executable
: 0 bytesNativeLibrary
: 0 bytesScript
: 0 bytesRegular
: 0 bytes