diff --git a/src/value.rs b/src/value.rs index a150fe636..0c8b4c24e 100644 --- a/src/value.rs +++ b/src/value.rs @@ -2622,6 +2622,14 @@ impl Generation { } } +impl Add for Generation { + type Output = Self; + + fn add(self, rhs: Self) -> Self::Output { + Self(self.0.wrapping_add(rhs.0)) + } +} + /// A type that can convert into a `ReadOnly`. pub trait IntoReadOnly { /// Returns `self` as a `ReadOnly`.