Enum lief::pe::headers::MachineType

pub enum MachineType {
Show 33 variants ALPHA, ALPHA64, AM33, AMD64, ARM, ARMNT, ARM64, EBC, I386, IA64, LOONGARCH32, LOONGARCH64, M32R, MIPS16, MIPSFPU, MIPSFPU16, POWERPC, POWERPCFP, POWERPCBE, R4000, RISCV32, RISCV64, RISCV128, SH3, SH3DSP, SH4, SH5, THUMB, WCEMIPSV2, ARM64EC, ARM64X, CHPE_X86, UNKNOWN(u32),
}

Variants§

§

ALPHA

Alpha AXP, 32-bit address space

§

ALPHA64

Alpha AXP, 64-bit address space

§

AM33

Matsushita AM33

§

AMD64

AMD x64

§

ARM

ARM little endian

§

ARMNT

ARMv7 Thumb mode only

§

ARM64

ARMv8 in 64-bits mode

§

EBC

EFI byte code

§

I386

Intel 386 or later

§

IA64

Intel Itanium processor family

§

LOONGARCH32

LoongArch 32-bit processor family

§

LOONGARCH64

LoongArch 64-bit processor family

§

M32R

Mitsubishi M32R little endian

§

MIPS16

MIPS16

§

MIPSFPU

MIPS with FPU

§

MIPSFPU16

MIPS16 with FPU

§

POWERPC

Power PC little endian

§

POWERPCFP

Power PC with floating point

§

POWERPCBE

Power PC big endian

§

R4000

MIPS with little endian

§

RISCV32

RISC-V 32-bit address space

§

RISCV64

RISC-V 64-bit address space

§

RISCV128

RISC-V 128-bit address space

§

SH3

Hitachi SH3

§

SH3DSP

Hitachi SH3 DSP

§

SH4

Hitachi SH4

§

SH5

Hitachi SH5

§

THUMB

ARM or Thumb

§

WCEMIPSV2

MIPS little-endian WCE v2

§

ARM64EC

§

ARM64X

§

CHPE_X86

§

UNKNOWN(u32)

Trait Implementations§

§

impl Clone for MachineType

§

fn clone(&self) -> MachineType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for MachineType

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<MachineType> for u32

§

fn from(value: MachineType) -> u32

Converts to this type from the input type.
§

impl From<u32> for MachineType

§

fn from(value: u32) -> Self

Converts to this type from the input type.
§

impl Hash for MachineType

§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq<MachineType> for MachineType

§

fn eq(&self, other: &MachineType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for MachineType

§

impl Eq for MachineType

§

impl StructuralEq for MachineType

§

impl StructuralPartialEq for MachineType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.