1 2 3 4 5 6 7 8 9 10 11 12 13
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Orientation {
// Taller than wide.
Portrait = 0,
// Wider than tall.
Landscape = 1,
}
impl Default for Orientation {
fn default() -> Self {
Self::Portrait
}
}