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