instruction.rs 287 B

123456789101112131415
  1. use steel::*;
  2. #[repr(u8)]
  3. #[derive(Clone, Copy, Debug, Eq, PartialEq, TryFromPrimitive)]
  4. pub enum HandInstruction {
  5. PullLever = 0,
  6. }
  7. #[repr(C)]
  8. #[derive(Clone, Copy, Debug, Pod, Zeroable)]
  9. pub struct PullLever {
  10. pub name: [u8; 32],
  11. }
  12. instruction!(HandInstruction, PullLever);