Trait Variant

Source
pub trait Variant {
    // Required method
    fn decode(opcode: u8) -> Option<(Instruction, AddressingMode)>;
}
Expand description

Trait for 6502 variant. This is the mechanism allowing the different 6502-like CPUs to be emulated. It allows a struct to decode an opcode into its instruction and addressing mode.

Required Methods§

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.

Implementors§