Skip to main content

MachineType

Enum MachineType 

Source
#[non_exhaustive]
pub enum MachineType {
Show 26 variants Unknown = 0, Am33 = 19, Amd64 = 34_404, Arm = 448, Arm64 = 43_620, ArmNT = 452, Ebc = 3_772, X86 = 332, Ia64 = 512, M32R = 36_929, Mips16 = 614, MipsFpu = 870, MipsFpu16 = 1_126, PowerPC = 496, PowerPCFP = 497, R4000 = 358, RiscV32 = 20_530, RiscV64 = 20_580, RiscV128 = 20_776, SH3 = 418, SH3DSP = 419, SH4 = 422, SH5 = 424, Thumb = 450, WceMipsV2 = 361, Invalid = 65_535,
}
Expand description

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.
§

Unknown = 0

The contents of this field are assumed to be applicable to any machine type.

§

Am33 = 19

Matsushita AM33

§

Amd64 = 34_404

x64

§

Arm = 448

ARM little endian

§

Arm64 = 43_620

ARM64 little endian

§

ArmNT = 452

ARM Thumb-2 little endian

§

Ebc = 3_772

EFI byte code

§

X86 = 332

Intel 386 or later processors and compatible processors

§

Ia64 = 512

Intel Itanium processor family

§

M32R = 36_929

Mitsubishi M32R little endian

§

Mips16 = 614

MIPS16

§

MipsFpu = 870

MIPS with FPU

§

MipsFpu16 = 1_126

MIPS16 with FPU

§

PowerPC = 496

Power PC little endian

§

PowerPCFP = 497

Power PC with floating point support

§

R4000 = 358

MIPS little endian

§

RiscV32 = 20_530

RISC-V 32-bit address space

§

RiscV64 = 20_580

RISC-V 64-bit address space

§

RiscV128 = 20_776

RISC-V 128-bit address space

§

SH3 = 418

Hitachi SH3

§

SH3DSP = 419

Hitachi SH3 DSP

§

SH4 = 422

Hitachi SH4

§

SH5 = 424

Hitachi SH5

§

Thumb = 450

Thumb

§

WceMipsV2 = 361

MIPS little-endian WCE v2

§

Invalid = 65_535

Invalid value

Trait Implementations§

Source§

impl Clone for MachineType

Source§

fn clone(&self) -> MachineType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for MachineType

Source§

impl Debug for MachineType

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for MachineType

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for MachineType

Source§

impl From<u16> for MachineType

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MachineType

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MachineType

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.