Tracking Issue for Duration::{zero, is_zero} (#![feature(duration_zero)]) (original) (raw)

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

Unresolved questions: