Performs checked multiplication
(self, other: Self)
| 194 | |
| 195 | /// Performs checked multiplication |
| 196 | pub fn checked_mul(self, other: Self) -> Option<Self> { |
| 197 | Some(Self { |
| 198 | months: self.months.checked_mul(other.months)?, |
| 199 | days: self.days.checked_mul(other.days)?, |
| 200 | nanoseconds: self.nanoseconds.checked_mul(other.nanoseconds)?, |
| 201 | }) |
| 202 | } |
| 203 | |
| 204 | /// Performs wrapping division |
| 205 | #[inline] |
no outgoing calls