Trait InstructionProvider
pub trait InstructionProvider {
type Context;
type InterpreterTypes: InterpreterTypes;
// Required method
fn instruction_table(
&self,
) -> &[fn(InstructionContext<'_, Self::Context, Self::InterpreterTypes>); 256];
}
Expand description
Stores instructions for EVM.
Required Associated Types§
type Context
type Context
Context type.
type InterpreterTypes: InterpreterTypes
type InterpreterTypes: InterpreterTypes
Interpreter types.
Required Methods§
fn instruction_table(
&self,
) -> &[fn(InstructionContext<'_, Self::Context, Self::InterpreterTypes>); 256]
fn instruction_table( &self, ) -> &[fn(InstructionContext<'_, Self::Context, Self::InterpreterTypes>); 256]
Returns the instruction table that is used by EvmTr to execute instructions.