instruction.rs 358 B

12345678910111213141516171819
  1. use steel::*;
  2. #[repr(u8)]
  3. #[derive(Clone, Copy, Debug, Eq, PartialEq, TryFromPrimitive)]
  4. pub enum SteelInstruction {
  5. SetFavorites = 0,
  6. }
  7. #[repr(C)]
  8. #[derive(Clone, Copy, Debug, Pod, Zeroable)]
  9. pub struct SetFavorites {
  10. pub number: [u8; 8],
  11. pub color: [u8; 32],
  12. pub hobbies: [[u8; 32]; 3],
  13. }
  14. instruction!(SteelInstruction, SetFavorites);