pub trait ToOpcode {
type Opcode;
// Required method
fn to_opcode(&self) -> Self::Opcode;
}Expand description
Allows for converting an Op into its associated Opcode.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".