Trait InstructionProvider

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

    // Required method
    fn instruction_table(
        &self,
    ) -> &InstructionTable<Self::InterpreterTypes, Self::Context>;
}
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, ) -> &InstructionTable<Self::InterpreterTypes, Self::Context>

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

Implementations on Foreign Types§

Source§

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

Source§

impl<T: InstructionProvider + ?Sized> InstructionProvider for Rc<T>

Source§

impl<T: InstructionProvider + ?Sized> InstructionProvider for Arc<T>

Implementors§

Source§

impl<IT, CTX> InstructionProvider for EthInstructions<IT, CTX>
where IT: InterpreterTypes, CTX: Host,