pub struct ElfFlags(/* private fields */);Implementations§
Source§impl ElfFlags
impl ElfFlags
pub const XGATE_ABI: Self
pub const M68HC11_ABI: Self
Sourcepub const M68K_CF_ISA_MASK: Self
pub const M68K_CF_ISA_MASK: Self
Which ISA
Sourcepub const IA_64_MASKOS: Self
pub const IA_64_MASKOS: Self
OS-specific flags.
pub const PICOJAVA_ARCH: Self
pub const BPF_CPUVER: Self
pub const XTENSA_MACH: Self
pub const M32R_IGNORE: Self
pub const NDS32_ELF_VERSION: Self
pub const XGATE_MACH_MASK: Self
pub const M68HC11_MACH_MASK: Self
pub const NDS_ABI: Self
Sourcepub const XGATE_MACH: Self
pub const XGATE_MACH: Self
XGATE microcontroller.
pub const ARM_NEW_ABI: Self
pub const AVR_LINKRELAX_PREPARED: Self
pub const MIPS_OPTIONS_FIRST: Self
Sourcepub const IA_64_NOFUNCDESC_CONS_GP: Self
pub const IA_64_NOFUNCDESC_CONS_GP: Self
And no function descriptors.
Sourcepub const FRV_GPR_MASK: Self
pub const FRV_GPR_MASK: Self
mask for # of gprs
Sourcepub const IQ2000_CPU_MASK: Self
pub const IQ2000_CPU_MASK: Self
specific cpu bits
Sourcepub const MT_CPU_MS2: Self
pub const MT_CPU_MS2: Self
MS2
Sourcepub const MT_CPU_MASK: Self
pub const MT_CPU_MASK: Self
specific cpu bits
pub const M68K_CF_ISA_A_PLUS: Self
Sourcepub const IA_64_VMS_COMCOD: Self
pub const IA_64_VMS_COMCOD: Self
Completion code.
pub const Z80_MACH_R800: Self
pub const IA_64_VMS_COMCOD_ABORT: Self
pub const PPC64_ABI: Self
pub const SH3: Self
pub const IQ2000_ALL_FLAGS: Self
pub const BFIN_PIC_FLAGS: Self
Sourcepub const SPARCV9_MM: Self
pub const SPARCV9_MM: Self
memory model mask
pub const LOONGARCH_ABI_DOUBLE_FLOAT: Self
pub const MT_ALL_FLAGS: Self
Sourcepub const FRV_GPR_32: Self
pub const FRV_GPR_32: Self
-mgpr-32
Sourcepub const RH850_FPU_DOUBLE: Self
pub const RH850_FPU_DOUBLE: Self
sizeof(double) == 8.
pub const S390_HIGH_GPRS: Self
pub const MIPS_NOREORDER: Self
Sourcepub const IQ2000_CPU_IQ2000: Self
pub const IQ2000_CPU_IQ2000: Self
default
pub const NIOS2_ARCH_R2: Self
pub const LM32_MACH: Self
Sourcepub const MT_CPU_MRISC: Self
pub const MT_CPU_MRISC: Self
default
pub const ALPHA_32BIT: Self
pub const CRIS_UNDERSCORE: Self
Sourcepub const VAX_NONPIC: Self
pub const VAX_NONPIC: Self
Object contains non-PIC code
Sourcepub const RH850_DATA_ALIGN4: Self
pub const RH850_DATA_ALIGN4: Self
Aligned to 4-byte bounadries.
Sourcepub const RH850_DOUBLE32: Self
pub const RH850_DOUBLE32: Self
32-bits in size.
Sourcepub const RH850_FPU20: Self
pub const RH850_FPU20: Self
Set if [N]]M{ADD|SUB}F.S are used.
pub const RH850_SIMD: Self
pub const RH850_CACHE: Self
pub const RH850_MMU: Self
pub const RISCV_RVC: Self
pub const VISIUM_ARCH_MCM: Self
Sourcepub const M68K_CF_ISA_A_NODIV: Self
pub const M68K_CF_ISA_A_NODIV: Self
ISA A except for div
pub const Z80_MACH_Z80: Self
pub const ARM_RELEXEC: Self
Sourcepub const IA_64_TRAPNIL: Self
pub const IA_64_TRAPNIL: Self
Trap NIL pointer dereferences.
pub const IA_64_VMS_COMCOD_WARNING: Self
pub const SH1: Self
pub const OR1K_NODELAY: Self
Sourcepub const SPARCV9_PSO: Self
pub const SPARCV9_PSO: Self
partial store ordering
pub const LOONGARCH_ABI_SOFT_FLOAT: Self
pub const C6000_REL: Self
Sourcepub const FRV_GPR_64: Self
pub const FRV_GPR_64: Self
-mgpr-64
Sourcepub const RH850_FPU_SINGLE: Self
pub const RH850_FPU_SINGLE: Self
sizeof(double) == 4.
pub const MIPS_PIC: Self
Sourcepub const IQ2000_CPU_IQ10: Self
pub const IQ2000_CPU_IQ10: Self
IQ10
Sourcepub const BFIN_FDPIC: Self
pub const BFIN_FDPIC: Self
-mfdpic
Sourcepub const MT_CPU_MRISC2: Self
pub const MT_CPU_MRISC2: Self
MRISC2
pub const ALPHA_CANRELAX: Self
pub const CRIS_VARIANT_V32: Self
Sourcepub const RH850_DATA_ALIGN8: Self
pub const RH850_DATA_ALIGN8: Self
Aligned to 8-byte bounadries.
Sourcepub const RH850_DOUBLE64: Self
pub const RH850_DOUBLE64: Self
64-bits in size.
Sourcepub const RH850_FPU30: Self
pub const RH850_FPU30: Self
Set if ADSF.D or ADDF.D is used.
pub const RISCV_FLOAT_ABI_SINGLE: Self
pub const VISIUM_ARCH_MCM24: Self
pub const M68K_CF_ISA_A: Self
pub const Z80_MACH_Z180: Self
pub const ARM_HASENTRY: Self
pub const IA_64_VMS_COMCOD_ERROR: Self
pub const SH2: Self
Sourcepub const SPARCV9_RMO: Self
pub const SPARCV9_RMO: Self
relaxed store ordering
pub const LOONGARCH_ABI_SINGLE_FLOAT: Self
Sourcepub const FRV_FPR_MASK: Self
pub const FRV_FPR_MASK: Self
mask for # of fprs
Sourcepub const FRV_FPR_NONE: Self
pub const FRV_FPR_NONE: Self
-msoft-float
pub const SH4A: Self
Sourcepub const FRV_FPR_32: Self
pub const FRV_FPR_32: Self
-mfpr-32
pub const MIPS_CPIC: Self
pub const CRIS_VARIANT_COMMON_V10_V32: Self
pub const RISCV_FLOAT_ABI_DOUBLE: Self
pub const VISIUM_ARCH_GR6: Self
Sourcepub const M68K_CF_ISA_B_NOUSP: Self
pub const M68K_CF_ISA_B_NOUSP: Self
ISA_B except for USP
Sourcepub const IA_64_VMS_LINKAGES: Self
pub const IA_64_VMS_LINKAGES: Self
Contains VMS linkages info.
pub const Z80_MACH_EZ80_Z80: Self
pub const ARM_INTERWORK: Self
Sourcepub const ARM_SYMSARESORTED: Self
pub const ARM_SYMSARESORTED: Self
NB conflicts with EF_INTERWORK.
pub const NDS_ABI_SHIFT: Self
pub const SH_DSP: Self
Sourcepub const FRV_FPR_64: Self
pub const FRV_FPR_64: Self
-mfpr-64
pub const MIPS_XGOT: Self
pub const RISCV_RVE: Self
pub const ARM_APCS_26: Self
Sourcepub const ARM_DYNSYMSUSESEGIDX: Self
pub const ARM_DYNSYMSUSESEGIDX: Self
NB conflicts with EF_APCS26.
pub const SH3E: Self
Sourcepub const FRV_DWORD_MASK: Self
pub const FRV_DWORD_MASK: Self
mask for dword support
pub const M68K_CF_MAC_MASK: Self
Sourcepub const M68K_CF_EMAC_B: Self
pub const M68K_CF_EMAC_B: Self
EMAC_B
pub const AMDGPU_MACH_AMDGCN_GFX908: Self
Sourcepub const FRV_DWORD_YES: Self
pub const FRV_DWORD_YES: Self
use double word insns
pub const MIPS_UCODE: Self
pub const PICOJAVA_NEWCALLS: Self
Sourcepub const BFIN_CODE_IN_L1: Self
pub const BFIN_CODE_IN_L1: Self
–code-in-l1
pub const RISCV_TSO: Self
Sourcepub const M68K_CF_MAC: Self
pub const M68K_CF_MAC: Self
MAC
Sourcepub const M68HC12_MACH: Self
pub const M68HC12_MACH: Self
68HC12 microcontroller.
pub const ARM_APCS_FLOAT: Self
Sourcepub const ARM_MAPSYMSFIRST: Self
pub const ARM_MAPSYMSFIRST: Self
NB conflicts with EF_APCS_FLOAT.
Sourcepub const IA_64_ABI64: Self
pub const IA_64_ABI64: Self
64-bit ABI.
pub const SH4_NOFPU: Self
pub const MIPS_64BIT_WHIRL: Self
Sourcepub const FRV_DWORD_NO: Self
pub const FRV_DWORD_NO: Self
don’t use double word insn
Sourcepub const RH850_REGMODE22: Self
pub const RH850_REGMODE22: Self
Registers r15-r24 (inclusive) are not used.
pub const MIPS_ABI2: Self
Sourcepub const PICOJAVA_GNUCALLS: Self
pub const PICOJAVA_GNUCALLS: Self
The (currently) non standard GNU calling convention
Sourcepub const BFIN_DATA_IN_L1: Self
pub const BFIN_DATA_IN_L1: Self
–data-in-l1
Sourcepub const M68K_CF_EMAC: Self
pub const M68K_CF_EMAC: Self
EMAC
Sourcepub const M68HCS12_MACH: Self
pub const M68HCS12_MACH: Self
68HCS12 microcontroller.
pub const ARM_PIC: Self
Sourcepub const IA_64_REDUCEDFP: Self
pub const IA_64_REDUCEDFP: Self
Only FP6-FP11 used.
pub const AMDGPU_MACH_AMDGCN_MIN: Self
pub const AMDGPU_MACH_AMDGCN_GFX600: Self
Sourcepub const FRV_DOUBLE: Self
pub const FRV_DOUBLE: Self
-mdouble
pub const RH850_REGMODE32: Self
Sourcepub const M68K_CF_FLOAT: Self
pub const M68K_CF_FLOAT: Self
Has float insns
pub const LOONGARCH_OBJABI_V1: Self
Sourcepub const ARM_ALIGN8: Self
pub const ARM_ALIGN8: Self
8-bit structure alignment is in use.
Sourcepub const IA_64_CONS_GP: Self
pub const IA_64_CONS_GP: Self
gp as program wide constant.
pub const AMDGPU_MACH_AMDGCN_GFX940: Self
pub const MIPS_ABI_ON32: Self
Sourcepub const RH850_GP_FIX: Self
pub const RH850_GP_FIX: Self
r4 is fixed.
pub const MIPS_32BITMODE: Self
Sourcepub const MEP_LIBRARY: Self
pub const MEP_LIBRARY: Self
Built as a library
pub const ARC_PIC: Self
pub const XTENSA_XT_INSN: Self
Sourcepub const VAX_DFLOAT: Self
pub const VAX_DFLOAT: Self
Object contains D-Float insn.
Sourcepub const IA_64_ABSOLUTE: Self
pub const IA_64_ABSOLUTE: Self
Load at absolute addresses.
Sourcepub const SPARC_32PLUS: Self
pub const SPARC_32PLUS: Self
generic V8+ features
pub const ARM_OLD_ABI: Self
pub const SH_PIC: Self
pub const AMDGPU_FEATURE_XNACK_V3: Self
pub const AMDGPU_FEATURE_XNACK_ANY_V4: Self
Sourcepub const FRV_NON_PIC_RELOCS: Self
pub const FRV_NON_PIC_RELOCS: Self
used non pic safe relocs
Sourcepub const RH850_GP_NOFIX: Self
pub const RH850_GP_NOFIX: Self
r4 is callee save.
pub const MIPS_FP64: Self
pub const XTENSA_XT_LIT: Self
Sourcepub const VAX_GFLOAT: Self
pub const VAX_GFLOAT: Self
Object contains G-Float insn.
Sourcepub const SPARC_SUN_US1: Self
pub const SPARC_SUN_US1: Self
Sun UltraSPARC1 extensions
pub const ARM_SOFT_FLOAT: Self
Sourcepub const ARM_ABI_FLOAT_SOFT: Self
pub const ARM_ABI_FLOAT_SOFT: Self
NB conflicts with EF_ARM_SOFT_FLOAT.
pub const AMDGPU_FEATURE_SRAMECC_V3: Self
pub const AMDGPU_FEATURE_XNACK_OFF_V4: Self
Sourcepub const FRV_MULADD: Self
pub const FRV_MULADD: Self
-mmuladd
Sourcepub const RH850_EP_FIX: Self
pub const RH850_EP_FIX: Self
r30 is fixed.
pub const MIPS_NAN2008: Self
Sourcepub const SPARC_HAL_R1: Self
pub const SPARC_HAL_R1: Self
HAL R1 extensions
pub const ARM_VFP_FLOAT: Self
Sourcepub const ARM_ABI_FLOAT_HARD: Self
pub const ARM_ABI_FLOAT_HARD: Self
NB conflicts with EF_ARM_VFP_FLOAT.
pub const AMDGPU_FEATURE_SRAMECC_ANY_V4: Self
Sourcepub const FRV_BIGPIC: Self
pub const FRV_BIGPIC: Self
-fPIC
Sourcepub const RH850_EP_NOFIX: Self
pub const RH850_EP_NOFIX: Self
r30 is callee save.
Sourcepub const SPARC_SUN_US3: Self
pub const SPARC_SUN_US3: Self
Sun UltraSPARCIII extensions
pub const ARM_MAVERICK_FLOAT: Self
pub const AMDGPU_FEATURE_SRAMECC_OFF_V4: Self
Sourcepub const FRV_LIBPIC: Self
pub const FRV_LIBPIC: Self
-mlibrary-pic
Sourcepub const RH850_TP_FIX: Self
pub const RH850_TP_FIX: Self
r5 is fixed.
Sourcepub const RH850_TP_NOFIX: Self
pub const RH850_TP_NOFIX: Self
r5 is callee save.
Sourcepub const FRV_NOPACK: Self
pub const FRV_NOPACK: Self
-mnopack
Sourcepub const RH850_REG2_RESERVE: Self
pub const RH850_REG2_RESERVE: Self
r2 is fixed.
Sourcepub const RH850_REG2_NORESERVE: Self
pub const RH850_REG2_NORESERVE: Self
r2 is callee saved.
pub const M68K_CFV4E: Self
Sourcepub const I370_RELOCATABLE_LIB: Self
pub const I370_RELOCATABLE_LIB: Self
i370 -mrelocatable-lib flag
Sourcepub const PPC_RELOCATABLE_LIB: Self
pub const PPC_RELOCATABLE_LIB: Self
PowerPC -mrelocatable-lib flag.
Sourcepub const FRV_CPU_MASK: Self
pub const FRV_CPU_MASK: Self
specific cpu bits
Sourcepub const IA_64_ARCH: Self
pub const IA_64_ARCH: Self
Arch. version mask.
Sourcepub const MEP_CPU_MASK: Self
pub const MEP_CPU_MASK: Self
specific cpu bits
pub const ARM_EABIMASK: Self
Sourcepub const FRV_CPU_GENERIC: Self
pub const FRV_CPU_GENERIC: Self
generic FRV
Sourcepub const MEP_CPU_MEP: Self
pub const MEP_CPU_MEP: Self
generic MEP
pub const MEP_COP_NONE: Self
pub const ARM_EABI_UNKNOWN: Self
pub const NIOS2_ARCH_R1: Self
pub const CRIS_VARIANT_ANY_V0_V10: Self
Sourcepub const MIPS_ARCH_1: Self
pub const MIPS_ARCH_1: Self
-mips1 code.
pub const RISCV_FLOAT_ABI_SOFT: Self
pub const IA_64_VMS_COMCOD_SUCCESS: Self
pub const NDS32_ELF_VERSION_SHIFT: Self
Sourcepub const SH_UNKNOWN: Self
pub const SH_UNKNOWN: Self
For backwards compatibility.
Sourcepub const M68HC11_GENERIC: Self
pub const M68HC11_GENERIC: Self
Generic 68HC12/backward compatibility.
Sourcepub const SPARCV9_TSO: Self
pub const SPARCV9_TSO: Self
total store ordering
pub const AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4: Self
pub const AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4: Self
Sourcepub const FRV_CPU_FR500: Self
pub const FRV_CPU_FR500: Self
FRV500
pub const M68K_M68000: Self
Sourcepub const MEP_CPU_C2: Self
pub const MEP_CPU_C2: Self
MEP c2
pub const ARM_EABI_VER1: Self
Sourcepub const IA_64_ARCHVER_1: Self
pub const IA_64_ARCHVER_1: Self
Arch. version level 1 compat.
Sourcepub const FRV_CPU_FR300: Self
pub const FRV_CPU_FR300: Self
FRV300
pub const M68K_FIDO: Self
pub const MIPS_ARCH_ASE_MICROMIPS: Self
Sourcepub const MEP_CPU_C3: Self
pub const MEP_CPU_C3: Self
MEP c3
pub const ARM_EABI_VER2: Self
Sourcepub const FRV_CPU_SIMPLE: Self
pub const FRV_CPU_SIMPLE: Self
SIMPLE
pub const ARM_EABI_VER3: Self
Sourcepub const FRV_CPU_TOMCAT: Self
pub const FRV_CPU_TOMCAT: Self
Tomcat, FR500 prototype
pub const MIPS_ARCH_ASE_M16: Self
Sourcepub const MEP_CPU_C4: Self
pub const MEP_CPU_C4: Self
MEP c4
pub const ARM_EABI_VER4: Self
Sourcepub const FRV_CPU_FR400: Self
pub const FRV_CPU_FR400: Self
FRV400
pub const ARM_EABI_VER5: Self
Sourcepub const FRV_CPU_FR550: Self
pub const FRV_CPU_FR550: Self
FRV550
pub const FRV_CPU_FR405: Self
pub const FRV_CPU_FR450: Self
pub const MIPS_ARCH_ASE_MDMX: Self
Sourcepub const MEP_CPU_C5: Self
pub const MEP_CPU_C5: Self
MEP c5
pub const FRV_PIC_FLAGS: Self
pub const FRV_ALL_FLAGS: Self
pub const MN10300_MACH: Self
pub const MIPS_MACH: Self
pub const H8_MACH: Self
pub const MEP_COP_MASK: Self
pub const V850_ARCH: Self
pub const MIPS_ARCH: Self
pub const RH850_ABI: Self
pub const NDS_ARCH: Self
pub const CSKY_ABIMASK: Self
pub const V800_850E3: Self
pub const PARISC_NO_KABP: Self
pub const RISCV_FLOAT_ABI: Self
pub const RISCV_FLOAT_ABI_QUAD: Self
pub const M68K_CF_ISA_C: Self
pub const Z80_MACH_Z80N: Self
pub const SH4AL_DSP: Self
pub const ARC_CPU_ARCV2HS: Self
pub const M68K_CPU32: Self
pub const CPU32: Self
pub const M68K_ARCH_MASK: Self
pub const M68K_CF_ISA_B: Self
pub const Z80_MACH_GBZ80: Self
pub const SH3_DSP: Self
pub const ARC_CPU_ARCV2EM: Self
Sourcepub const M68K_CF_ISA_C_NODIV: Self
pub const M68K_CF_ISA_C_NODIV: Self
ISA C except for div
pub const LOONGARCH_ABI_MODIFIER_MASK: Self
pub const M68K_CF_MASK: Self
Sourcepub const MEP_INDEX_MASK: Self
pub const MEP_INDEX_MASK: Self
Configuration index
pub const ARC_MACH_MSK: Self
pub const MSP430_MACH: Self
pub const Z80_MACH_MSK: Self
pub const AMDGPU_MACH: Self
Sourcepub const I370_RELOCATABLE: Self
pub const I370_RELOCATABLE: Self
i370 -mrelocatable flag
pub const PARISC_TRAPNIL: Self
Sourcepub const PPC_RELOCATABLE: Self
pub const PPC_RELOCATABLE: Self
PowerPC -mrelocatable flag.
pub const MEP_COP_AVC: Self
pub const SCORE_MACH: Self
pub const OMIT_PIC_FIXDD: Self
pub const M32R_INST: Self
pub const CSKY_OTHER: Self
pub const SCORE_PIC: Self
Sourcepub const MIPS_ARCH_64R2: Self
pub const MIPS_ARCH_64R2: Self
MIPS64r2 code.
pub const SCORE_FIXDEP: Self
Sourcepub const MIPS_ARCH_5: Self
pub const MIPS_ARCH_5: Self
-mips5 code.
pub const PARISC_EXT: Self
pub const MEP_COP_AVC2: Self
pub const PARISC_LSB: Self
pub const PARISC_WIDE: Self
pub const PARISC_LAZYSWAP: Self
pub const ARM_LE8: Self
pub const PARISC_ARCH: Self
pub const CSKY_PROCESSOR: Self
pub const M32R_ARCH: Self
Sourcepub const MIPS_ARCH_4: Self
pub const MIPS_ARCH_4: Self
-mips4 code.
pub const MIPS_ARCH_ASE: Self
pub const MIPS_ABI: Self
Sourcepub const MEP_CPU_H1: Self
pub const MEP_CPU_H1: Self
MEP h1
Sourcepub const MIPS_ARCH_2: Self
pub const MIPS_ARCH_2: Self
-mips2 code.
pub const CSKY_ABIV1: Self
pub const MEP_COP_FMAX: Self
pub const MEP_COP_IVC2: Self
pub const MEP_ALL_FLAGS: Self
Sourcepub const RL78_CPU_RL78: Self
pub const RL78_CPU_RL78: Self
FIXME: correct value?
Sourcepub const RL78_CPU_MASK: Self
pub const RL78_CPU_MASK: Self
specific cpu bits.
Sourcepub const M32C_CPU_MASK: Self
pub const M32C_CPU_MASK: Self
specific cpu bits
pub const RL78_ALL_FLAGS: Self
pub const AVR_MACH: Self
pub const M32C_ALL_FLAGS: Self
pub const Z80_MACH_EZ80_ADL: Self
Sourcepub const SPARC_32PLUS_MASK: Self
pub const SPARC_32PLUS_MASK: Self
bits indicating V8+ type
Sourcepub const SPARC_EXT_MASK: Self
pub const SPARC_EXT_MASK: Self
reserved for vendor extensions
Sourcepub const SPARC_LEDATA: Self
pub const SPARC_LEDATA: Self
little endian data
pub const ARM_BE8: Self
pub const LOONGARCH_OBJABI_MASK: Self
pub const LOONGARCH_ABI_MASK: Self
Sourcepub const M32C_CPU_M16C: Self
pub const M32C_CPU_M16C: Self
default
Sourcepub const M32C_CPU_M32C: Self
pub const M32C_CPU_M32C: Self
m32c
pub const NDS_ARCH_SHIFT: Self
pub const NDS_INST: Self
pub const SH_MACH_MASK: Self
pub const SH4: Self
pub const SH2E: Self
pub const SH2A: Self
pub const SH4A_NOFPU: Self
pub const SH4_NOMMU_NOFPU: Self
pub const SH2A_NOFPU: Self
pub const SH3_NOMMU: Self
pub const SH2A_SH4_NOFPU: Self
pub const SH2A_SH3_NOFPU: Self
pub const SH2A_SH4: Self
pub const SH2A_SH3E: Self
pub const SH5: Self
pub const ARC_OSABI_MSK: Self
pub const ARC_ALL_MSK: Self
Sourcepub const RX_CPU_MASK: Self
pub const RX_CPU_MASK: Self
specific cpu bits.
pub const RX_ALL_FLAGS: Self
pub const AMDGPU_MACH_AMDGCN_GFX601: Self
pub const AMDGPU_MACH_AMDGCN_GFX700: Self
pub const AMDGPU_MACH_AMDGCN_GFX701: Self
pub const AMDGPU_MACH_AMDGCN_GFX702: Self
pub const AMDGPU_MACH_AMDGCN_GFX703: Self
pub const AMDGPU_MACH_AMDGCN_GFX704: Self
pub const AMDGPU_MACH_AMDGCN_GFX801: Self
pub const AMDGPU_MACH_AMDGCN_GFX802: Self
pub const AMDGPU_MACH_AMDGCN_GFX803: Self
pub const AMDGPU_MACH_AMDGCN_GFX810: Self
pub const AMDGPU_MACH_AMDGCN_GFX900: Self
pub const AMDGPU_MACH_AMDGCN_GFX902: Self
pub const AMDGPU_MACH_AMDGCN_GFX904: Self
pub const AMDGPU_MACH_AMDGCN_GFX906: Self
pub const AMDGPU_MACH_AMDGCN_GFX909: Self
pub const AMDGPU_MACH_AMDGCN_GFX90C: Self
pub const AMDGPU_MACH_AMDGCN_GFX1010: Self
pub const AMDGPU_MACH_AMDGCN_GFX1011: Self
pub const AMDGPU_MACH_AMDGCN_GFX1012: Self
pub const AMDGPU_MACH_AMDGCN_GFX1030: Self
pub const AMDGPU_MACH_AMDGCN_GFX1031: Self
pub const AMDGPU_MACH_AMDGCN_GFX1032: Self
pub const AMDGPU_MACH_AMDGCN_GFX1033: Self
pub const AMDGPU_MACH_AMDGCN_GFX602: Self
pub const AMDGPU_MACH_AMDGCN_GFX705: Self
pub const AMDGPU_MACH_AMDGCN_GFX805: Self
pub const AMDGPU_MACH_AMDGCN_GFX1035: Self
pub const AMDGPU_MACH_AMDGCN_GFX1034: Self
pub const AMDGPU_MACH_AMDGCN_GFX90A: Self
pub const AMDGPU_MACH_AMDGCN_GFX1013: Self
pub const AMDGPU_MACH_AMDGCN_GFX1036: Self
pub const AMDGPU_FEATURE_XNACK_V4: Self
pub const AMDGPU_FEATURE_XNACK_ON_V4: Self
pub const AMDGPU_FEATURE_SRAMECC_V4: Self
pub const AMDGPU_FEATURE_SRAMECC_ON_V4: Self
pub const CRIS_VARIANT_MASK: Self
Sourcepub const MIPS_ARCH_3: Self
pub const MIPS_ARCH_3: Self
-mips3 code.
pub const CSKY_ABIV2: Self
Sourcepub const MIPS_ARCH_32: Self
pub const MIPS_ARCH_32: Self
MIPS32 code.
Sourcepub const MIPS_ARCH_64: Self
pub const MIPS_ARCH_64: Self
MIPS64 code.
Sourcepub const MIPS_ARCH_32R2: Self
pub const MIPS_ARCH_32R2: Self
MIPS32r2 code.
Source§impl ElfFlags
impl ElfFlags
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits(bits: u32) -> Option<Self>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> Self
pub const fn from_bits_retain(bits: u32) -> Self
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn remove(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl ElfFlags
impl ElfFlags
Sourcepub const fn iter(&self) -> Iter<ElfFlags>
pub const fn iter(&self) -> Iter<ElfFlags>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<ElfFlags>
pub const fn iter_names(&self) -> IterNames<ElfFlags>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl BinarySerde for ElfFlags
impl BinarySerde for ElfFlags
Source§const SERIALIZED_SIZE: usize = 4usize
const SERIALIZED_SIZE: usize = 4usize
Source§type RecursiveArray = <<ElfFlags as Flags>::Bits as BinarySerde>::RecursiveArray
type RecursiveArray = <<ElfFlags as Flags>::Bits as BinarySerde>::RecursiveArray
Self::SERIALIZED_SIZE.Source§fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
Source§fn binary_deserialize(
buf: &[u8],
endianness: Endianness,
) -> Result<Self, DeserializeError>
fn binary_deserialize( buf: &[u8], endianness: Endianness, ) -> Result<Self, DeserializeError>
Source§fn binary_serialize_to_array(
&self,
endianness: Endianness,
) -> Self::RecursiveArray
fn binary_serialize_to_array( &self, endianness: Endianness, ) -> Self::RecursiveArray
Source§impl BitAndAssign for ElfFlags
impl BitAndAssign for ElfFlags
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOrAssign for ElfFlags
impl BitOrAssign for ElfFlags
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXorAssign for ElfFlags
impl BitXorAssign for ElfFlags
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Extend<ElfFlags> for ElfFlags
impl Extend<ElfFlags> for ElfFlags
Source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl Flags for ElfFlags
impl Flags for ElfFlags
Source§fn from_bits_retain(bits: u32) -> ElfFlags
fn from_bits_retain(bits: u32) -> ElfFlags
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
Source§fn iter_defined_names() -> IterDefinedNames<Self>
fn iter_defined_names() -> IterDefinedNames<Self>
Self::FLAGS.Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.Source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moreSource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moreSource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.Source§impl FromIterator<ElfFlags> for ElfFlags
impl FromIterator<ElfFlags> for ElfFlags
Source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|) of the bits in each flags value.
Source§impl IntoIterator for ElfFlags
impl IntoIterator for ElfFlags
Source§impl Sub for ElfFlags
impl Sub for ElfFlags
Source§impl SubAssign for ElfFlags
impl SubAssign for ElfFlags
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.