pub struct InstructionRecorder { /* private fields */ }
Expand description
Records and compiles cross-program invoked instructions
Implementations
sourceimpl InstructionRecorder
impl InstructionRecorder
pub fn compile_instructions(
&self,
message: &SanitizedMessage
) -> Option<Vec<CompiledInstruction>>
pub fn record_instruction(&self, stack_height: usize, instruction: Instruction)
pub fn get(&self, index: usize) -> Option<Instruction>
pub fn find(&self, stack_height: usize, index: usize) -> Option<Instruction>
Trait Implementations
sourceimpl Clone for InstructionRecorder
impl Clone for InstructionRecorder
sourcefn clone(&self) -> InstructionRecorder
fn clone(&self) -> InstructionRecorder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstructionRecorder
impl Debug for InstructionRecorder
sourceimpl Default for InstructionRecorder
impl Default for InstructionRecorder
sourcefn default() -> InstructionRecorder
fn default() -> InstructionRecorder
Returns the “default value” for a type. Read more
sourceimpl PartialEq<InstructionRecorder> for InstructionRecorder
impl PartialEq<InstructionRecorder> for InstructionRecorder
sourcefn eq(&self, other: &InstructionRecorder) -> bool
fn eq(&self, other: &InstructionRecorder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstructionRecorder) -> bool
fn ne(&self, other: &InstructionRecorder) -> bool
This method tests for !=
.
impl StructuralPartialEq for InstructionRecorder
Auto Trait Implementations
impl !RefUnwindSafe for InstructionRecorder
impl !Send for InstructionRecorder
impl !Sync for InstructionRecorder
impl Unpin for InstructionRecorder
impl !UnwindSafe for InstructionRecorder
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more