pub struct DisplayAt<'a> { /* private fields */ }Expand description
An Inst shown with branch targets as absolute addresses, for an
instruction located at a known address. Built by Inst::display_at.
§Examples
use isa_lang::x86_64::{Inst, Mnemonic, Operand};
let call = Inst::new(Mnemonic::Call, [Operand::Rel(0x40)]);
assert_eq!(call.display_at(0x40_1000).to_string(), "call 0x401040");
assert_eq!(call.to_string(), "call $+0x40");Trait Implementations§
impl<'a> Copy for DisplayAt<'a>
Auto Trait Implementations§
impl<'a> Freeze for DisplayAt<'a>
impl<'a> RefUnwindSafe for DisplayAt<'a>
impl<'a> Send for DisplayAt<'a>
impl<'a> Sync for DisplayAt<'a>
impl<'a> Unpin for DisplayAt<'a>
impl<'a> UnsafeUnpin for DisplayAt<'a>
impl<'a> UnwindSafe for DisplayAt<'a>
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