#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Arrowhead {
Normal,
None,
Dot,
Ex,
}
impl Arrowhead {
pub fn tail(&self) -> &'static str {
match self {
Arrowhead::Normal => "<",
Arrowhead::None => "",
Arrowhead::Dot => "o",
Arrowhead::Ex => "x",
}
}
pub fn head(&self) -> &'static str {
match self {
Arrowhead::Normal => ">",
Arrowhead::None => "",
Arrowhead::Dot => "o",
Arrowhead::Ex => "x",
}
}
}