(&self)
| 72 | } |
| 73 | |
| 74 | pub fn will_swap_coordinates(&self) -> bool { |
| 75 | match *self { |
| 76 | Self::Horizontal | Self::MirrorHorizontal | Self::Rotate180 | Self::MirrorVertical => false, |
| 77 | Self::MirrorHorizontalRotate270 | Self::Rotate90 | Self::MirrorHorizontalRotate90 | Self::Rotate270 => true, |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | #[derive(Debug, PartialEq, Eq, Clone, Copy, IntoPrimitive, TryFromPrimitive)] |