Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @scottmcm (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
|
Do you have an ACP for these? They're not obvious enough to me that I'd be willing to approve them, even for nightly, without libs-api weighing in. @rustbot author |
djc
left a comment
There was a problem hiding this comment.
Adding these makes sense to me -- not sure if they should be part of the same feature?
|
@djc up to you. My thinking is it could be reasonable to bundle these associated constants with their required constructor counterparts as one feature. |
|
I don't think it's up to me -- I'm not a libs reviewer. |
|
@edwardwc this needs an ACP to be written to proceed. Once you have submitted the ACP, you can mention it here (preferably in the pr description) |
|
@edwardwc |
|
Closing this as no acp was created, and without that we can't move it forward. |
Add associated constants to the unstable Duration constructors. The tracking issue for these constructors is #120301.
This change aims to make interacting with time more clean and intuitive by providing predefined duration constants.
For example, to use a static for your sleep intervals:
Or with use of a
lazy_staticOr, to use it plainly