1#[derive(Copy, Clone, Debug, serde::Deserialize)] 2pub enum SeparatorTactic { 3 Always, 4 Never, 5 Vertical, 6} 7 8impl SeparatorTactic { 9 pub fn from_bool(b: bool) -> Self { 10 if b { 11 Self::Always 12 } else { 13 Self::Never 14 } 15 } 16}