(self, other: Self)
| 175 | /// Performs checked subtraction |
| 176 | #[inline] |
| 177 | pub fn checked_sub(self, other: Self) -> Option<Self> { |
| 178 | Some(Self { |
| 179 | months: self.months.checked_sub(other.months)?, |
| 180 | days: self.days.checked_sub(other.days)?, |
| 181 | nanoseconds: self.nanoseconds.checked_sub(other.nanoseconds)?, |
| 182 | }) |
| 183 | } |
| 184 | |
| 185 | /// Performs wrapping multiplication |
| 186 | #[inline] |
no outgoing calls