torin/values/
direction.rs

1#[derive(PartialEq, Eq, Clone, Debug, Default)]
2pub enum Direction {
3    #[default]
4    Vertical,
5    Horizontal,
6}
7
8impl Direction {
9    pub fn pretty(&self) -> String {
10        match self {
11            Self::Horizontal => "horizontal".to_string(),
12            Self::Vertical => "vertical".to_string(),
13        }
14    }
15}