#[non_exhaustive]pub enum Executable {
Pe,
Elf,
MachO,
Script,
}Expand description
What the bytes are, where they are something that runs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pe
MZ. A Windows executable image: .exe, .dll, and the rest.
Elf
\x7fELF. A Linux or BSD executable or shared object.
MachO
A Mach-O image, in either byte order and either width.
Script
#!. A script naming its own interpreter, which is what makes it run.
Implementations§
Trait Implementations§
Source§impl Clone for Executable
impl Clone for Executable
impl Copy for Executable
Source§impl Debug for Executable
impl Debug for Executable
impl Eq for Executable
Source§impl PartialEq for Executable
impl PartialEq for Executable
impl StructuralPartialEq for Executable
Auto Trait Implementations§
impl Freeze for Executable
impl RefUnwindSafe for Executable
impl Send for Executable
impl Sync for Executable
impl Unpin for Executable
impl UnsafeUnpin for Executable
impl UnwindSafe for Executable
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.