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§
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
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.