Skip to main content

ToOpcode

Trait ToOpcode 

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

Source

type Opcode

The associated Opcode type.

Required Methods§

Source

fn to_opcode(&self) -> Self::Opcode

The opcode associated with this operation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§