use zingprocmacros::make_instruction_type; struct ZsciiString; make_instruction_type!{MyInstruction { 1 FirstInst, 0b10 SecondInst st, 3u8 ThirdInst br txt, 12 FourthInst txt, 0xC FifthInst br, }} fn main() { let one = MyInstruction::FirstInst; let two = MyInstruction::SecondInst { store: 0 }; let three = MyInstruction::ThirdInst { branch: 0, text: ZsciiString }; }