1 2 3 4 5 6 7 8 9 10 11 12
#[derive(Clone, Copy, Debug, Default)] pub struct Verbosity(pub u8); impl Verbosity { pub fn is_verbose(self) -> bool { self.0 >= 1 } pub fn is_extra(self) -> bool { self.0 >= 2 } }