1 2 3 4 5 6 7 8 9 10 11 12 13
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum AxisDirection { Up = 0, Right = 1, Down = 2, Left = 3, } impl Default for AxisDirection { fn default() -> Self { Self::Up } }