pub trait OpBuilder: Sized {
type Context;
// Required methods
fn build_op(
self,
) -> OpEvm<Self::Context, (), EthInstructions<EthInterpreter, Self::Context>>;
fn build_op_with_inspector<INSP>(
self,
inspector: INSP,
) -> OpEvm<Self::Context, INSP, EthInstructions<EthInterpreter, Self::Context>>;
}
Expand description
Trait that allows for optimism OpEvm to be built.
Required Associated Types§
Required Methods§
Sourcefn build_op(
self,
) -> OpEvm<Self::Context, (), EthInstructions<EthInterpreter, Self::Context>>
fn build_op( self, ) -> OpEvm<Self::Context, (), EthInstructions<EthInterpreter, Self::Context>>
Build the op.
Sourcefn build_op_with_inspector<INSP>(
self,
inspector: INSP,
) -> OpEvm<Self::Context, INSP, EthInstructions<EthInterpreter, Self::Context>>
fn build_op_with_inspector<INSP>( self, inspector: INSP, ) -> OpEvm<Self::Context, INSP, EthInstructions<EthInterpreter, Self::Context>>
Build the op with an inspector.
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.