Struct qemu_plugin::TranslationBlock
source · pub struct TranslationBlock<'a> { /* private fields */ }
Expand description
Wrapper structure for a qemu_plugin_tb *
Safety
This structure is safe to use as long as the pointer is valid. The pointer is always opaque, and therefore may not be dereferenced.
Implementations§
source§impl<'a> TranslationBlock<'a>
impl<'a> TranslationBlock<'a>
sourcepub fn instruction(&'a self, index: usize) -> Result<Instruction<'a>>
pub fn instruction(&'a self, index: usize) -> Result<Instruction<'a>>
Returns the instruction in the translation block at index
. If the index is out of bounds,
an error is returned.
Arguments
index
: The index of the instruction to return
sourcepub fn instructions(&'a self) -> TranslationBlockIterator<'a> ⓘ
pub fn instructions(&'a self) -> TranslationBlockIterator<'a> ⓘ
Returns an iterator over the instructions in the translation block
Trait Implementations§
source§impl<'a> From<*mut qemu_plugin_tb> for TranslationBlock<'a>
impl<'a> From<*mut qemu_plugin_tb> for TranslationBlock<'a>
source§fn from(tb: *mut qemu_plugin_tb) -> Self
fn from(tb: *mut qemu_plugin_tb) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TranslationBlock<'a>
impl<'a> Send for TranslationBlock<'a>
impl<'a> Sync for TranslationBlock<'a>
impl<'a> Unpin for TranslationBlock<'a>
impl<'a> UnwindSafe for TranslationBlock<'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