git-next/crates/git/src/generation.rs

9 lines
186 B
Rust

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
}
}