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

11 lines
252 B
Rust
Raw Normal View History

2024-05-14 16:28:17 +01:00
#[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
}
}