pub trait ExecutableInstruction<State, CustomError>where
Self: Instruction,{
// Required method
fn execute(
self,
state: &mut State,
) -> Result<ControlFlow<()>, ExecutionError<<<Self as Instruction>::Reg as Register>::Type, Self, CustomError>>;
}Expand description
Trait for executable instructions
Required Methods§
Sourcefn execute(
self,
state: &mut State,
) -> Result<ControlFlow<()>, ExecutionError<<<Self as Instruction>::Reg as Register>::Type, Self, CustomError>>
fn execute( self, state: &mut State, ) -> Result<ControlFlow<()>, ExecutionError<<<Self as Instruction>::Reg as Register>::Type, Self, CustomError>>
Execute instruction
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.