Trait InstructionProvider

Source
pub trait InstructionProvider {
    type Context;
    type InterpreterTypes: InterpreterTypes;

    // Required method
    fn instruction_table(
        &self,
    ) -> &[Instruction<Self::InterpreterTypes, Self::Context>; 256];
}
Expand description

Stores instructions for EVM.

Required Associated Types§

Source

type Context

Context type.

Source

type InterpreterTypes: InterpreterTypes

Interpreter types.

Required Methods§

Source

fn instruction_table( &self, ) -> &[Instruction<Self::InterpreterTypes, Self::Context>; 256]

Returns the instruction table that is used by EvmTr to execute instructions.

Implementations on Foreign Types§

Source§

impl<'a, T> InstructionProvider for &'a T
where T: 'a + InstructionProvider + ?Sized,

Source§

impl<T> InstructionProvider for Rc<T>

Source§

impl<T> InstructionProvider for Arc<T>

Implementors§