1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#[derive(PartialEq, Clone, Debug, Default)]
pub enum Alignment {
    #[default]
    Start,
    Center,
    End,
}

impl Alignment {
    pub fn is_not_start(&self) -> bool {
        *self != Self::Start
    }

    pub fn pretty(&self) -> String {
        match self {
            Alignment::Start => "start".to_string(),
            Alignment::Center => "center".to_string(),
            Alignment::End => "end".to_string(),
        }
    }
}