Trait InstructionProvider
pub trait InstructionProvider {
type Context;
type InterpreterTypes: InterpreterTypes;
// Required methods
fn instruction_table(
&self,
) -> &[Instruction<Self::InterpreterTypes, Self::Context>; 256];
fn gas_table(&self) -> &[u16; 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,
) -> &[Instruction<Self::InterpreterTypes, Self::Context>; 256]
fn instruction_table( &self, ) -> &[Instruction<Self::InterpreterTypes, Self::Context>; 256]
Returns the instruction table that is used by EvmTr to execute instructions.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".