1 2 3 4 5 6 7 8 9 10 11 12 13
pub enum Layout { Monocle, Tiled } impl Layout { pub fn get_string(&self) -> String { String::from(match self { Layout::Monocle => "monocle", Layout::Tiled => "tiled" }) } }