Paul Campbell
c374076323
All checks were successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/cron/cron-docker-builder Pipeline was successful
ci/woodpecker/cron/push-next Pipeline was successful
ci/woodpecker/cron/tag-created Pipeline was successful
10 lines
252 B
Rust
10 lines
252 B
Rust
#[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
|
|
}
|
|
}
|