pub struct ScratchDecode {
pub lines: Vec<ScratchInsn>,
pub terminates: bool,
pub ran_out: bool,
pub out_of_range_targets: usize,
pub misaligned_targets: usize,
pub self_misaligned_targets: usize,
}Expand description
The result of decoding bytes as code without committing them: a look before leaping to a real disassemble.
Fields§
§lines: Vec<ScratchInsn>§terminates: boolFlow ended at a return or unconditional jump (a clean block end).
ran_out: boolDecoding stopped early because an opcode ran past the mapped bytes.
out_of_range_targets: usizeHow many decoded targets point outside the loaded image.
misaligned_targets: usizeHow many decoded targets land inside an existing instruction.
self_misaligned_targets: usizeHow many decoded targets land inside another instruction of this same decode.
Trait Implementations§
Source§impl Clone for ScratchDecode
impl Clone for ScratchDecode
Source§impl Debug for ScratchDecode
impl Debug for ScratchDecode
Auto Trait Implementations§
impl Forget for ScratchDecode
impl Freeze for ScratchDecode
impl Move for ScratchDecode
impl RefUnwindSafe for ScratchDecode
impl Send for ScratchDecode
impl Sync for ScratchDecode
impl Unpin for ScratchDecode
impl UnsafeUnpin for ScratchDecode
impl UnwindSafe for ScratchDecode
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
Mutably borrows from an owned value. Read more