Adding checked_sub to Duration


I just noticed that Duration panics when subtracting a longer Duration.

Would it be possible or useful to add something like usize::checked_sub for Duration?

If yes, should I post to the internals forum, open an issue or send a PR?


Sounds like a good idea. I think you’re supposed to submit an RFC if you want to add new public APIs.