pub enum FileType {
NONE,
REL,
EXEC,
DYN,
CORE,
UNKNOWN(u32),
}
Expand description
The type of the underlying ELF file. This enum matches
the semantic of ET_NONE
, ET_REL
, …
Variants§
NONE
Can’t be determined
REL
Relocatable file (or object file)
EXEC
non-pie executable
DYN
Shared library or a pie-executable
CORE
Core dump file
UNKNOWN(u32)
Implementations§
§impl FileType
impl FileType
pub fn from_value(value: u32) -> Self
Trait Implementations§
§impl Ord for FileType
impl Ord for FileType
§impl PartialOrd<FileType> for FileType
impl PartialOrd<FileType> for FileType
§fn partial_cmp(&self, other: &FileType) -> Option<Ordering>
fn partial_cmp(&self, other: &FileType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FileType
impl Eq for FileType
impl StructuralEq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
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