Skip to content

Tracking Issue for Duration::div_duration_floor() and Duration::div_duration_ceil() #149573

@max-heller

Description

@max-heller

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.)

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

Labels

C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions