revm_interpreter::interpreter

Trait InstructionProvider

Source
pub trait InstructionProvider: Clone {
    type WIRE: InterpreterTypes;
    type Host;

    // Required methods
    fn new(context: &mut Self::Host) -> Self;
    fn table(
        &mut self,
    ) -> &[impl CustomInstruction<Wire = Self::WIRE, Host = Self::Host>; 256];
}

Required Associated Types§

Required Methods§

Source

fn new(context: &mut Self::Host) -> Self

Source

fn table( &mut self, ) -> &[impl CustomInstruction<Wire = Self::WIRE, Host = Self::Host>; 256]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<WIRE, HOST> InstructionProvider for EthInstructionProvider<WIRE, HOST>
where WIRE: InterpreterTypes, HOST: Host,

Source§

type WIRE = WIRE

Source§

type Host = HOST