#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum ArrowDirection {
Forward,
Back,
Both,
None,
}
impl std::fmt::Display for ArrowDirection {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let value = match self {
ArrowDirection::Forward => "forward",
ArrowDirection::Back => "back",
ArrowDirection::Both => "both",
ArrowDirection::None => "none",
};
write!(f, "{}", value)
}
}