pub struct Interpreter;Expand description
Namespace for byte-PVM execution.
Implementations§
Source§impl Interpreter
impl Interpreter
Sourcepub fn run<M: Memory>(
program: &PvmProgram,
regs: &mut Regs,
mem: &mut M,
gas: &mut GasCounter,
handler: &mut dyn EcallHandler,
) -> ExitReason
pub fn run<M: Memory>( program: &PvmProgram, regs: &mut Regs, mem: &mut M, gas: &mut GasCounter, handler: &mut dyn EcallHandler, ) -> ExitReason
Execute program starting at regs.pc. Returns the terminal
ExitReason. On return, regs.pc reflects the PC at exit
(already advanced past an ecall instruction if exit came from
the handler; otherwise the PC of the offending instruction).
Auto Trait Implementations§
impl Freeze for Interpreter
impl RefUnwindSafe for Interpreter
impl Send for Interpreter
impl Sync for Interpreter
impl Unpin for Interpreter
impl UnsafeUnpin for Interpreter
impl UnwindSafe for Interpreter
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