Struct klinker::Instr [−][src]
pub struct Instr { /* fields omitted */ }
A struct representing an instruction in the context of a KSM file. The operands to this instruction should be u32’s that represent an index into an ArgumentSection
Implementations
impl Instr
[src]
impl Instr
[src]pub fn new(opcode: u8, operands: Vec<u32>) -> Instr
[src]
pub fn write(
&self,
addr_bytes: u32,
writer: &mut KSMFileWriter
) -> Result<(), Box<dyn Error>>
[src]
&self,
addr_bytes: u32,
writer: &mut KSMFileWriter
) -> Result<(), Box<dyn Error>>
pub fn num_operands(&self) -> u32
[src]
pub fn from_rel(
rel_instr: &RelInstruction,
argument_section: &ArgumentSection
) -> Result<Instr, Box<dyn Error>>
[src]
rel_instr: &RelInstruction,
argument_section: &ArgumentSection
) -> Result<Instr, Box<dyn Error>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Instr
impl RefUnwindSafe for Instr
impl UnwindSafe for Instr
impl UnwindSafe for Instr