ArchDetail

Enum ArchDetail 

Source
pub enum ArchDetail<'a> {
Show 17 variants ArmDetail(ArmInsnDetail<'a>), Arm64Detail(Arm64InsnDetail<'a>), EvmDetail(EvmInsnDetail<'a>), M680xDetail(M680xInsnDetail<'a>), M68kDetail(M68kInsnDetail<'a>), MipsDetail(MipsInsnDetail<'a>), Mos65xxDetail(Mos65xxInsnDetail<'a>), PpcDetail(PpcInsnDetail<'a>), RiscVDetail(RiscVInsnDetail<'a>), ShDetail(ShInsnDetail<'a>), SparcDetail(SparcInsnDetail<'a>), Tms320c64xDetail(Tms320c64xInsnDetail<'a>), TriCoreDetail(TriCoreInsnDetail<'a>), X86Detail(X86InsnDetail<'a>), XcoreDetail(XcoreInsnDetail<'a>), BpfDetail(BpfInsnDetail<'a>), SysZDetail(SysZInsnDetail<'a>),
}
Expand description

Contains architecture-dependent detail structures.

For convenience, there are methods for each architecture that return an Option of that architecture’s detail structure. This allows you to use an if let Some(...) = { /* ... */ } instead of a match statement.

Variants§

§

ArmDetail(ArmInsnDetail<'a>)

§

Arm64Detail(Arm64InsnDetail<'a>)

§

EvmDetail(EvmInsnDetail<'a>)

§

M680xDetail(M680xInsnDetail<'a>)

§

M68kDetail(M68kInsnDetail<'a>)

§

MipsDetail(MipsInsnDetail<'a>)

§

Mos65xxDetail(Mos65xxInsnDetail<'a>)

§

PpcDetail(PpcInsnDetail<'a>)

§

RiscVDetail(RiscVInsnDetail<'a>)

§

ShDetail(ShInsnDetail<'a>)

§

SparcDetail(SparcInsnDetail<'a>)

§

Tms320c64xDetail(Tms320c64xInsnDetail<'a>)

§

TriCoreDetail(TriCoreInsnDetail<'a>)

§

X86Detail(X86InsnDetail<'a>)

§

XcoreDetail(XcoreInsnDetail<'a>)

§

BpfDetail(BpfInsnDetail<'a>)

§

SysZDetail(SysZInsnDetail<'a>)

Implementations§

Source§

impl<'a> ArchDetail<'a>

Source

pub fn operands(&'a self) -> Vec<ArchOperand>

Returns architecture independent set of operands

Source

pub fn arm(&'a self) -> Option<&'a ArmInsnDetail<'a>>

Returns the ARM details, if any

Source

pub fn arm64(&'a self) -> Option<&'a Arm64InsnDetail<'a>>

Returns the ARM64 details, if any

Source

pub fn evm(&'a self) -> Option<&'a EvmInsnDetail<'a>>

Returns the EVM details, if any

Source

pub fn m680x(&'a self) -> Option<&'a M680xInsnDetail<'a>>

Returns the M680X details, if any

Source

pub fn m68k(&'a self) -> Option<&'a M68kInsnDetail<'a>>

Returns the M68K details, if any

Source

pub fn mips(&'a self) -> Option<&'a MipsInsnDetail<'a>>

Returns the MIPS details, if any

Source

pub fn mos65xx(&'a self) -> Option<&'a Mos65xxInsnDetail<'a>>

Returns the Mos65xx details, if any

Source

pub fn ppc(&'a self) -> Option<&'a PpcInsnDetail<'a>>

Returns the PPC details, if any

Source

pub fn riscv(&'a self) -> Option<&'a RiscVInsnDetail<'a>>

Returns the RISCV details, if any

Source

pub fn sh(&'a self) -> Option<&'a ShInsnDetail<'a>>

Returns the SH details, if any

Source

pub fn sparc(&'a self) -> Option<&'a SparcInsnDetail<'a>>

Returns the SPARC details, if any

Source

pub fn tms320c64x(&'a self) -> Option<&'a Tms320c64xInsnDetail<'a>>

Returns the Tms320c64x details, if any

Source

pub fn tricore(&'a self) -> Option<&'a TriCoreInsnDetail<'a>>

Returns the TriCore details, if any

Source

pub fn x86(&'a self) -> Option<&'a X86InsnDetail<'a>>

Returns the X86 details, if any

Source

pub fn xcore(&'a self) -> Option<&'a XcoreInsnDetail<'a>>

Returns the XCore details, if any

Source

pub fn bpf(&'a self) -> Option<&'a BpfInsnDetail<'a>>

Returns the BPF details, if any

Source

pub fn sysz(&'a self) -> Option<&'a SysZInsnDetail<'a>>

Returns the SysZ details, if any

Trait Implementations§

Source§

impl<'a> Debug for ArchDetail<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ArchDetail<'a>

§

impl<'a> RefUnwindSafe for ArchDetail<'a>

§

impl<'a> Send for ArchDetail<'a>

§

impl<'a> Sync for ArchDetail<'a>

§

impl<'a> Unpin for ArchDetail<'a>

§

impl<'a> UnwindSafe for ArchDetail<'a>

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