pub enum ArchDetail<'a> {
    ArmDetail(ArmInsnDetail<'a>),
    Arm64Detail(Arm64InsnDetail<'a>),
    EvmDetail(EvmInsnDetail<'a>),
    M680xDetail(M680xInsnDetail<'a>),
    M68kDetail(M68kInsnDetail<'a>),
    MipsDetail(MipsInsnDetail<'a>),
    PpcDetail(PpcInsnDetail<'a>),
    RiscVDetail(RiscVInsnDetail<'a>),
    SparcDetail(SparcInsnDetail<'a>),
    Tms320c64xDetail(Tms320c64xInsnDetail<'a>),
    X86Detail(X86InsnDetail<'a>),
    XcoreDetail(XcoreInsnDetail<'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>)

§

PpcDetail(PpcInsnDetail<'a>)

§

RiscVDetail(RiscVInsnDetail<'a>)

§

SparcDetail(SparcInsnDetail<'a>)

§

Tms320c64xDetail(Tms320c64xInsnDetail<'a>)

§

X86Detail(X86InsnDetail<'a>)

§

XcoreDetail(XcoreInsnDetail<'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<&ArmInsnDetail<'a>>

Returns the ARM details, if any

source

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

Returns the ARM64 details, if any

source

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

Returns the EVM details, if any

source

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

Returns the M680X details, if any

source

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

Returns the M68K details, if any

source

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

Returns the MIPS details, if any

source

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

Returns the PPC details, if any

source

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

Returns the RISCV details, if any

source

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

Returns the SPARC details, if any

source

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

Returns the Tms320c64x details, if any

source

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

Returns the X86 details, if any

source

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

Returns the XCore 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> 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>,

§

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

§

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.