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,
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?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,