- Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.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.
Description
This feature adds the following float related methods to Duration:
as_secs_f64(&self) -> f64as_secs_f32(&self) -> f32from_secs_f64(secs: f64) -> Durationfrom_secs_f32(secs: f32) -> Durationmul_f64(self, rhs: f64) -> Durationmul_f32(self, rhs: f32) -> Durationdiv_f64(self, rhs: f64) -> Durationdiv_f32(self, rhs: f64) -> Duration
div_duration methods are tracked in #63139.
binarybana, 0e4ef622, russelltg, ckampfe, caemor and 31 more
Metadata
Metadata
Assignees
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.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.