#[derive(Copy, Clone, Default, Debug, PartialEq, Eq, PartialOrd, Ord, derive_more::Display)] pub struct Generation(u32); impl Generation { pub fn new() -> Self { Self::default() } pub fn inc(&mut self) { self.0 += 1 } }