Enum capstone::Mode

source ·
pub enum Mode {
Show 30 variants Arm, Mode16, Mode32, Mode64, Thumb, Mips2, Mips3, Mips32R6, Mips32, Mips64, V9, Qpx, M68k000, M68k010, M68k020, M68k030, M68k040, M680x6301, M680x6309, M680x6800, M680x6801, M680x6805, M680x6808, M680x6809, M680x6811, M680xCpu12, M680xHcs08, RiscV32, RiscV64, Default,
}
Expand description

Disassembler modes

Variants§

§

Arm

32-bit ARM

§

Mode16

16-bit mode (X86)

§

Mode32

32-bit mode (X86)

§

Mode64

64-bit mode (X86, PPC)

§

Thumb

ARM’s Thumb mode, including Thumb-2

§

Mips2

Mips II ISA

§

Mips3

Mips III ISA

§

Mips32R6

Mips32r6 ISA

§

Mips32

Mips32 ISA (Mips)

§

Mips64

Mips64 ISA (Mips)

§

V9

SparcV9 mode (Sparc)

§

Qpx

Quad Processing eXtensions mode (PPC)

§

M68k000

M68K 68000 mode

§

M68k010

M68K 68010 mode

§

M68k020

M68K 68020 mode

§

M68k030

M68K 68030 mode

§

M68k040

M68K 68040 mode

§

M680x6301

M680X Hitachi 6301,6303 mode

§

M680x6309

M680X Hitachi 6309 mode

§

M680x6800

M680X Motorola 6800,6802 mode

§

M680x6801

M680X Motorola 6801,6803 mode

§

M680x6805

M680X Motorola/Freescale 6805 mode

§

M680x6808

M680X Motorola/Freescale/NXP 68HC08 mode

§

M680x6809

M680X Motorola 6809 mode

§

M680x6811

M680X Motorola/Freescale/NXP 68HC11 mode

§

M680xCpu12

M680X Motorola/Freescale/NXP CPU12

§

M680xHcs08

M680X Freescale/NXP HCS08 mode

§

RiscV32

RISC-V 32-bit mode

§

RiscV64

RISC-V 64-bit mode

§

Default

Default mode for little-endian

Trait Implementations§

source§

impl Clone for Mode

source§

fn clone(&self) -> Mode

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Mode

source§

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

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

impl Display for Mode

source§

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

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

impl EnumList for Mode

source§

fn variants() -> &'static [Self]

Slice of available variants
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<ArchMode> for Mode

source§

fn from(other: ArchMode) -> Mode

Converts to this type from the input type.
source§

impl From<Mode> for cs_mode

source§

fn from(other: Mode) -> Self

Converts to this type from the input type.
source§

impl FromStr for Mode

§

type Err = &'static str

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Mode

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Mode

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Mode

source§

impl Eq for Mode

source§

impl StructuralPartialEq for Mode

Auto Trait Implementations§

§

impl RefUnwindSafe for Mode

§

impl Send for Mode

§

impl Sync for Mode

§

impl Unpin for Mode

§

impl UnwindSafe for Mode

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> ToOwned for T
where T: Clone,

§

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§

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

§

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.