Tracking Issue for duration_constructors_lite #140881
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
disposition-merge
This issue / PR is in PFCP or FCP with a disposition to merge it.
proposed-final-comment-period
Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
S-tracking-unimplemented
Status: The feature has not been implemented.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(duration_constructors_lite)]
This is a tracking issue for
duration_constructors_lite
.duration_constructors_lite
implements the non-controversial bits ofduration_constructors
.Public API
std::time::Duration
from_mins(u64)
from_hours(u64)
History
(Remember to update the
S-tracking-*
label when checking boxes.)duration_constructors
implementation core: add Duration constructors #120307Duration
constructorsfrom_mins
,from_hours
,from_days
andfrom_weeks
.from_days
andfrom_weeks
wrong too easy.CivilDuration
type to disambiguateDuration
as the "standard/scientific" time duration its safer to avoid introducingfrom_days
andfrom_weeks
even ifDuration
explicitly aims to model "standard/scientific".Steps
Unresolved Questions
from_days
and other larger quantities in the future.std
to help avoid mis-interpretingstd::time::Duration
.Misc
I want to thank all folks who participated in #120301. It's not fun to argue online for so long, but very much needed to grow the language in a sound way as it's even harder to undo mistakes.
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: