revm_interpreter::table

Trait CustomInstruction

Source
pub trait CustomInstruction {
    type Wire: InterpreterTypes;
    type Host;

    // Required methods
    fn exec(
        &self,
        interpreter: &mut Interpreter<Self::Wire>,
        host: &mut Self::Host,
    );
    fn from_base(instruction: Instruction<Self::Wire, Self::Host>) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn exec(&self, interpreter: &mut Interpreter<Self::Wire>, host: &mut Self::Host)

Source

fn from_base(instruction: Instruction<Self::Wire, Self::Host>) -> Self

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§