-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Open
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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
Feature gate: #![feature(duration_integer_division)]
This is a tracking issue for rust-lang/libs-team#706
Adds integer division methods for core::time::Duration paralleling Duration::div_duration_{f32,f64}().
Public API
// core::time
impl Duration {
const fn div_duration_floor(self, rhs: Self) -> u128;
const fn div_duration_ceil(self, rhs: Self) -> u128;
}Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: More arithmetic functions for Duration libs-team#706
- Implementation: Implement
Duration::div_duration_{floor,ceil}#149582 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.