use derive_more::Display; use git_next_config::newtype; newtype!(Generation is a u32, Display, Default, Copy); impl Generation { pub fn inc(&mut self) { self.0 += 1 } }