pub struct Explanation {Show 13 fields
pub mnemonic: String,
pub prefix: Option<String>,
pub summary: String,
pub group: String,
pub effect: String,
pub reads: Vec<String>,
pub writes: Vec<String>,
pub flags_modified: Vec<Flag>,
pub flags_read: Vec<Flag>,
pub flags_undefined: Vec<Flag>,
pub notes: Option<String>,
pub approximate: bool,
pub concrete: Option<String>,
}Expand description
A rendered explanation of one instruction.
Fields§
§mnemonic: StringThe mnemonic as written, lowercase.
prefix: Option<String>Any instruction prefix that was present.
summary: StringA one-line description of the instruction.
group: StringThe category it belongs to.
effect: StringWhat it does, with the actual operands substituted.
reads: Vec<String>What it reads, as display names.
writes: Vec<String>What it writes, as display names.
flags_modified: Vec<Flag>Flags it modifies.
flags_read: Vec<Flag>Flags it consults.
flags_undefined: Vec<Flag>Flags it leaves architecturally undefined.
notes: Option<String>Extra guidance.
approximate: boolWhether the effect is described only approximately.
concrete: Option<String>The effect with live register values substituted, when they are known.
RAX ← RAX + RBX becomes RAX ← 1 + 2. This is the difference between
a reference card and watching the machine work, so it is computed
whenever the debugger is stopped and left None otherwise.
Implementations§
Source§impl Explanation
impl Explanation
Source§impl Explanation
impl Explanation
Sourcepub fn with_values(self, values: &dyn RegisterValues) -> Self
pub fn with_values(self, values: &dyn RegisterValues) -> Self
Fills in Explanation::concrete from live register values.
Only operands that are plainly registers are substituted. An immediate
already shows its value, and a memory operand would need a memory read
to resolve — showing [rbx+8] unchanged is honest, whereas printing a
guessed address would not be.
Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§impl Debug for Explanation
impl Debug for Explanation
impl Eq for Explanation
Source§impl PartialEq for Explanation
impl PartialEq for Explanation
impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more