wolf_graph_dot/details/
arrow_direction.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2pub enum ArrowDirection {
3    Forward,
4    Back,
5    Both,
6    None,
7}
8
9impl std::fmt::Display for ArrowDirection {
10    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
11        let value = match self {
12            ArrowDirection::Forward => "forward",
13            ArrowDirection::Back => "back",
14            ArrowDirection::Both => "both",
15            ArrowDirection::None => "none",
16        };
17        write!(f, "{}", value)
18    }
19}