Trait InstructionProvider

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

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

Stores instructions for EVM.

Required Associated Types§

type Context

Context type.

type InterpreterTypes: InterpreterTypes

Interpreter types.

Required Methods§

fn instruction_table( &self, ) -> &[for<'a> fn(&'a mut Interpreter<Self::InterpreterTypes>, &'a mut Self::Context); 256]

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

Implementations on Foreign Types§

§

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

§

impl<T> InstructionProvider for Rc<T>

§

impl<T> InstructionProvider for Arc<T>

Implementors§

§

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

§

type InterpreterTypes = IT

§

type Context = CTX