1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[derive(Copy, Clone, PartialEq, Eq, Debug)] pub enum Orientation { Left, Right, Top, Bottom, } impl Orientation { pub fn as_classes(&self) -> Vec<&str> { match self { Orientation::Left => vec!["pf-m-left"], Orientation::Right => vec!["pf-m-right"], Orientation::Top => vec!["pf-m-top"], Orientation::Bottom => vec!["pf-m-bottom"], } } }