use alloc::string::{
String,
ToString,
};
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(PartialEq, Eq, Clone, Debug, Default, Copy)]
pub enum Direction {
#[default]
Vertical,
Horizontal,
}
impl Direction {
pub const fn vertical() -> Direction {
Direction::Vertical
}
pub const fn horizontal() -> Direction {
Direction::Horizontal
}
pub fn pretty(&self) -> String {
match self {
Self::Horizontal => "horizontal".to_string(),
Self::Vertical => "vertical".to_string(),
}
}
}