fn gen_instruction_data_impl(
    formats: &[Rc<InstructionFormat>],
    fmt: &mut Formatter
)
Expand description

Generate the boring parts of the InstructionData implementation.

These methods in impl InstructionData can be generated automatically from the instruction formats:

  • pub fn opcode(&self) -> Opcode
  • pub fn arguments(&self, &pool) -> &[Value]
  • pub fn arguments_mut(&mut self, &pool) -> &mut [Value]
  • pub fn eq(&self, &other: Self, &pool) -> bool
  • pub fn hash<H: Hasher>(&self, state: &mut H, &pool)