Skip to main content

ArchitectureEncoder

Trait ArchitectureEncoder 

Source
pub trait ArchitectureEncoder<I: Instruction> {
    // Required method
    fn encode(&self, opcode: u32, operands: &[u32]) -> I;
}
Expand description

Architecture-specific encoding functions

Required Methods§

Source

fn encode(&self, opcode: u32, operands: &[u32]) -> I

Encode an instruction with specific opcode and operands

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§