-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
A-timeProposals relating to time & dates.Proposals relating to time & dates.T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.

Description
Hello Rust developers,
I apologize beforehand because I think this is a simple RFC, so I'm not going through full requirements of an RFC issue.
Would you please consider adding new function (below) to core::time::Duration
?
/// # Checks if this duration is zero
pub fn is_zero(&self) -> bool;
When taking options from users, I find myself many times the need to check if a duration is zero. Perhaps it could be the same for other developers.
Thank you very much for your hard work,
Metadata
Metadata
Assignees
Labels
A-timeProposals relating to time & dates.Proposals relating to time & dates.T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.