pub struct DisassembledInstruction {
pub address: String,
pub instruction_bytes: Option<String>,
pub instruction: String,
pub symbol: Option<String>,
pub location: Option<Source>,
pub line: Option<i32>,
pub column: Option<i32>,
pub end_line: Option<i32>,
pub end_column: Option<i32>,
/* private fields */
}
Expand description
Represents a single disassembled instruction.
Fields§
§address: String
The address of the instruction. Treated as a hex value if prefixed with ‘0x’, or as a decimal value otherwise.
instruction_bytes: Option<String>
Optional raw bytes representing the instruction and its operands, in an implementation-defined format.
instruction: String
Text representing the instruction and its operands, in an implementation-defined format.
symbol: Option<String>
Name of the symbol that corresponds with the location of this instruction, if any.
location: Option<Source>
Source location that corresponds to this instruction, if any.
Should always be set (if available) on the first instruction returned,
but can be omitted afterwards if this instruction maps to the same source file as the previous instruction.
line: Option<i32>
The line within the source location that corresponds to this instruction, if any.
column: Option<i32>
The column within the line that corresponds to this instruction, if any.
end_line: Option<i32>
The end line of the range that corresponds to this instruction, if any.
end_column: Option<i32>
The end column of the range that corresponds to this instruction, if any.
Implementations§
Source§impl DisassembledInstruction
impl DisassembledInstruction
Sourcepub fn builder() -> DisassembledInstructionBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> DisassembledInstructionBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building DisassembledInstruction
.
On the builder, call .address(...)
, .instruction_bytes(...)
(optional), .instruction(...)
, .symbol(...)
(optional), .location(...)
(optional), .line(...)
(optional), .column(...)
(optional), .end_line(...)
(optional), .end_column(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of DisassembledInstruction
.
Trait Implementations§
Source§impl Clone for DisassembledInstruction
impl Clone for DisassembledInstruction
Source§fn clone(&self) -> DisassembledInstruction
fn clone(&self) -> DisassembledInstruction
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DisassembledInstruction
impl Debug for DisassembledInstruction
Source§impl<'de> Deserialize<'de> for DisassembledInstruction
impl<'de> Deserialize<'de> for DisassembledInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DisassembledInstruction
impl PartialEq for DisassembledInstruction
Source§fn eq(&self, other: &DisassembledInstruction) -> bool
fn eq(&self, other: &DisassembledInstruction) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for DisassembledInstruction
impl Serialize for DisassembledInstruction
impl Eq for DisassembledInstruction
impl StructuralPartialEq for DisassembledInstruction
Auto Trait Implementations§
impl Freeze for DisassembledInstruction
impl RefUnwindSafe for DisassembledInstruction
impl Send for DisassembledInstruction
impl Sync for DisassembledInstruction
impl Unpin for DisassembledInstruction
impl UnwindSafe for DisassembledInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.