(self, other: Self)
| 155 | /// Performs checked addition |
| 156 | #[inline] |
| 157 | pub fn checked_add(self, other: Self) -> Option<Self> { |
| 158 | Some(Self { |
| 159 | months: self.months.checked_add(other.months)?, |
| 160 | days: self.days.checked_add(other.days)?, |
| 161 | nanoseconds: self.nanoseconds.checked_add(other.nanoseconds)?, |
| 162 | }) |
| 163 | } |
| 164 | |
| 165 | /// Performs wrapping subtraction |
| 166 | #[inline] |
no outgoing calls
no test coverage detected