Closed
Description
This is a tracking issue for Duration::{ZERO, is_zero}
(#![feature(duration_zero)]
). Proposed in RFC 2814 which got closed just because such a small change does not require an RFC. Proposed again and implemented in #72790.
impl Duration {
pub const ZERO: Duration;
pub const fn is_zero(&self) -> bool;
}
Steps
- Implement (core/time: Add Duration methods for zero #72790)
- FCP
- Stabilization PR (Stabilize duration_zero. #84084)
Unresolved questions:
- Also add an associated constant
ZERO
? yes. done - Should the associated constant be preferred over the
zero
function? yes,zero()
is removed.
Metadata
Metadata
Assignees
Labels
Area: TimeBlocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are considered "small" or self-containedLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.