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
type Context
Context type.
type InterpreterTypes: InterpreterTypes
type InterpreterTypes: InterpreterTypes
Interpreter types.
Required Methods§
fn instruction_table(
&self,
) -> &[for<'a> fn(&'a mut Interpreter<Self::InterpreterTypes>, &'a mut Self::Context); 256]
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 Twhere
T: 'a + InstructionProvider + ?Sized,
impl<'a, T> InstructionProvider for &'a Twhere
T: 'a + InstructionProvider + ?Sized,
type Context = <T as InstructionProvider>::Context
type InterpreterTypes = <T as InstructionProvider>::InterpreterTypes
fn instruction_table( &self, ) -> &[for<'a> fn(&'a mut Interpreter<<&'a T as InstructionProvider>::InterpreterTypes>, &'a mut <&'a T as InstructionProvider>::Context); 256]
§impl<IT, CTX> InstructionProvider for SeismicInstructions<IT, CTX>where
IT: InterpreterTypes,
CTX: Host,
Implement InstructionProvider trait for SeismicInstructions
impl<IT, CTX> InstructionProvider for SeismicInstructions<IT, CTX>where
IT: InterpreterTypes,
CTX: Host,
Implement InstructionProvider trait for SeismicInstructions