dot2 1.0.0

A library for generating Graphviz DOT language files for graphs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Arrow modifier that determines if the shape is empty or filled.
#[derive(Clone, Copy, Hash, PartialEq, Eq)]
pub enum Fill {
    Open,
    Filled,
}

impl std::fmt::Display for Fill {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let s = match self {
            Self::Open => "o",
            Self::Filled => "",
        };

        write!(f, "{s}")
    }
}