-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for extra Duration methods #46507
Comments
Add more Duration methods for consistency. Follow-up to #46507.
@sfackler this should be marked as a tracking issue now |
Done! |
Looks good to me to stabilize. @rfcbot fcp merge |
Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
I feel like |
And similarly, for formatting/display purposes, |
The final comment period is now complete. |
@birkenfeld personally I'd rather have |
stabilize a bunch of minor api additions besides `ptr::NonNull::cast` (which is 4 days away from end of FCP) all of these have been finished with FCP for a few weeks now with minimal issues raised * Closes #41020 * Closes #42818 * Closes #44030 * Closes #44400 * Closes #46507 * Closes #47653 * Closes #46344 the following functions will be stabilized in 1.27: * `[T]::rsplit` * `[T]::rsplit_mut` * `[T]::swap_with_slice` * `ptr::swap_nonoverlapping` * `NonNull::cast` * `Duration::from_micros` * `Duration::from_nanos` * `Duration::subsec_millis` * `Duration::subsec_micros` * `HashMap::remove_entry`
I know it's late (but it isn't in stable yet), but I wonder if |
@xfix I'm not involved in this decision but it appears that 2^64 seconds is about 42x the age of the universe. So, |
Yeah but |
Right now, we have
from_secs
,from_millis
, andfrom_micros
, and alsoas_secs
andsubsec_nanos
.It makes sense to also add
from_nanos
,subsec_micros
, andsubsec_millis
.The text was updated successfully, but these errors were encountered: