#[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
The target machine’s architecture. Reference: https://docs.microsoft.com/en-us/windows/desktop/debug/pe-format#machine-types
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
impl Clone for MachineType
Source§fn clone(&self) -> MachineType
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MachineType
Source§impl Debug for MachineType
impl Debug for MachineType
Source§impl Display for MachineType
impl Display for MachineType
impl Eq for MachineType
Source§impl From<u16> for MachineType
impl From<u16> for MachineType
Source§impl PartialEq for MachineType
impl PartialEq for MachineType
impl StructuralPartialEq for MachineType
Auto Trait Implementations§
impl Freeze for MachineType
impl RefUnwindSafe for MachineType
impl Send for MachineType
impl Sync for MachineType
impl Unpin for MachineType
impl UnsafeUnpin for MachineType
impl UnwindSafe for MachineType
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