3 ms·
Hmm? std::time::Duration doesn’t implement Mul<Duration>, and does implement Mul<u32>, and has methods mul_f32 and mul_f64. So you can multiply a duration with
by chrismorgan 5y ago
Hmm? std::time::Duration doesn’t implement Mul<Duration>, and does implement Mul<u32>, and has methods mul_f32 and mul_f64. So you can multiply a duration with a number; and you can’t multiply a duration with a duration because that would be stupid.
- xigoi 5y agoI was talking about Go.
- chrismorgan 5y agoOh wow, that is nasty.