binaryninja::disassembly

Enum InstructionTextTokenKind

source
pub enum InstructionTextTokenKind {
Show 52 variants Text, Instruction, OperandSeparator, Register, Integer { value: u64, size: Option<usize>, }, PossibleAddress { value: u64, size: Option<usize>, }, BeginMemoryOperand, EndMemoryOperand, FloatingPoint { value: f64, size: Option<usize>, }, Annotation, CodeRelativeAddress { value: u64, size: Option<usize>, }, ArgumentName { value: u64, }, HexDumpByteValue { value: u8, }, HexDumpSkippedByte, HexDumpInvalidByte, HexDumpText { width: u64, }, Opcode, String { value: u64, }, StringContent { ty: StringType, }, CharacterConstant, Keyword, TypeName, FieldName { offset: u64, type_names: Vec<String>, }, NameSpace, NameSpaceSeparator, Tag, StructOffset { offset: u64, type_names: Vec<String>, }, StructOffsetByteValue, StructureHexDumpText { width: u64, }, GotoLabel { target: u64, }, Comment { target: u64, }, PossibleValue { value: u64, }, PossibleValueType, ArrayIndex { index: u64, }, Indentation, UnknownMemory, EnumerationMember { value: u64, type_id: Option<String>, }, Operation, BaseStructureName, BaseStructureSeparator, Brace { hash: Option<u64>, }, CodeSymbol { value: u64, size: usize, }, DataSymbol { value: u64, size: usize, }, LocalVariable { variable_id: u64, ssa_version: usize, }, Import { target: u64, }, AddressDisplay { address: u64, }, IndirectImport { target: u64, size: usize, source_operand: usize, }, ExternalSymbol { value: u64, }, StackVariable { variable_id: u64, }, AddressSeparator, CollapsedInformation, CollapseStateIndicator { hash: Option<u64>, },
}

Variants§

§

Text

§

Instruction

§

OperandSeparator

§

Register

§

Integer

Fields

§value: u64
§size: Option<usize>

Size of the integer

§

PossibleAddress

Fields

§value: u64
§size: Option<usize>

Size of the address

§

BeginMemoryOperand

§

EndMemoryOperand

§

FloatingPoint

Fields

§value: f64
§size: Option<usize>

Size of the floating point

§

Annotation

§

CodeRelativeAddress

Fields

§value: u64
§

ArgumentName

Fields

§value: u64
§

HexDumpByteValue

Fields

§value: u8
§

HexDumpSkippedByte

§

HexDumpInvalidByte

§

HexDumpText

Fields

§width: u64
§

Opcode

§

String

Fields

§value: u64
§

StringContent

Fields

§

CharacterConstant

§

Keyword

§

TypeName

§

FieldName

Fields

§offset: u64

Offset to this field in the respective structure

§type_names: Vec<String>

Stores the type names for the referenced field name.

This is typically just the members name. For example MyStructure.my_field will have type_names be [“my_field”].

§

NameSpace

§

NameSpaceSeparator

§

Tag

§

StructOffset

Fields

§offset: u64

Offset to this field in the respective structure

§type_names: Vec<String>

Stores the type names for the referenced field name.

§

StructOffsetByteValue

§

StructureHexDumpText

Fields

§width: u64
§

GotoLabel

Fields

§target: u64
§

Comment

Fields

§target: u64
§

PossibleValue

Fields

§value: u64
§

PossibleValueType

§

ArrayIndex

Fields

§index: u64
§

Indentation

§

UnknownMemory

§

EnumerationMember

Fields

§value: u64
§type_id: Option<String>

The enumerations type id

§

Operation

Operations like +, -, %

§

BaseStructureName

§

BaseStructureSeparator

§

Brace

Fields

§hash: Option<u64>
§

CodeSymbol

Fields

§value: u64
§size: usize
§

DataSymbol

Fields

§value: u64
§size: usize
§

LocalVariable

Fields

§variable_id: u64
§ssa_version: usize

NOTE: This is only valid in SSA form

§

Import

Fields

§target: u64
§

AddressDisplay

Fields

§address: u64
§

IndirectImport

Fields

§target: u64

The address of the import

If you want the address of the import token use InstructionTextToken::address instead.

§size: usize

Size of the instruction this token is apart of

§source_operand: usize
§

ExternalSymbol

Fields

§value: u64
§

StackVariable

Fields

§variable_id: u64
§

AddressSeparator

§

CollapsedInformation

§

CollapseStateIndicator

Fields

§hash: Option<u64>

Trait Implementations§

source§

impl Clone for InstructionTextTokenKind

source§

fn clone(&self) -> InstructionTextTokenKind

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 InstructionTextTokenKind

source§

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

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

impl From<InstructionTextTokenKind> for BNInstructionTextTokenType

source§

fn from(value: InstructionTextTokenKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for InstructionTextTokenKind

source§

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

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

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

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

impl Eq for InstructionTextTokenKind

source§

impl StructuralPartialEq for InstructionTextTokenKind

Auto Trait Implementations§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dst. 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,

source§

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