Tracking Issue for Duration::{zero, is_zero} (#![feature(duration_zero)]) · Issue #73544 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@LukasKalbertodt

Description

@LukasKalbertodt

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: