Trait fuel_vm::interpreter::EcalHandler

source ·
pub trait EcalHandler: Clone
where Self: Sized,
{ const INC_PC: bool = true; // Required method fn ecal<M, S, Tx>( vm: &mut Interpreter<M, S, Tx, Self>, a: RegId, b: RegId, c: RegId, d: RegId, ) -> SimpleResult<()> where M: Memory; }
Expand description

ECAL opcode handler

Provided Associated Constants§

source

const INC_PC: bool = true

Whether to increment PC after executing ECAL. If this is false, the handler must increment PC itself.

Required Methods§

source

fn ecal<M, S, Tx>( vm: &mut Interpreter<M, S, Tx, Self>, a: RegId, b: RegId, c: RegId, d: RegId, ) -> SimpleResult<()>
where M: Memory,

ECAL opcode handler

Object Safety§

This trait is not object safe.

Implementors§

source§

impl EcalHandler for NotSupportedEcal

Default ECAL opcode handler function, which charges for noop and does nothing.

source§

impl EcalHandler for PredicateErrorEcal

ECAL is not allowed in predicates