pub trait InstructionProvider: Clone {
type WIRE: InterpreterTypes;
type Host;
// Required methods
fn new(context: &mut Self::Host) -> Self;
fn table(
&mut self,
) -> &[impl CustomInstruction<Wire = Self::WIRE, Host = Self::Host>; 256];
}
Required Associated Types§
type WIRE: InterpreterTypes
type Host
Required Methods§
fn new(context: &mut Self::Host) -> Self
fn table( &mut self, ) -> &[impl CustomInstruction<Wire = Self::WIRE, Host = Self::Host>; 256]
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.