-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for Duration::try_from_secs_{f32, f64} #83400
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(duration_checked_float)]This is a tracking issue for checked methods to construct a duration from a floating-point value of seconds without panicking.
Public API
Steps / History
Duration::try_from_secs_{f32, f64}#82179duration_checked_float#102271 (comment)duration_checked_float#102271Unresolved Questions
FromSecsError.FromFloatSecsErrorin Improve Duration::try_from_secs_f32/64 accuracy by directly processing exponent and mantissa #90247TryFromFloatSecsErrorin Stabilizeduration_checked_float#102271