Closed adamgreig closed 2 years ago
Awesome, could you add one of each to the tests and update the CHANGELOG?
And thanks for adding! I had completely forgotten this!
Thanks! I've added tests (and a few extra tests for the non-assign versions where I couldn't find them, for Duration * u32, Duration / u32, Instant
bors merge
Implements +=, -=, =, and /= where appropriate, by using the existing +, -, , and / operators.
This allows for example:
instead of what's currently required:
Sorry if this has been considered before, I couldn't find any previous discussions. I tried to add it wherever it makes sense alongside an existing operator implementation.