-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Tracking issue for div_duration #63139
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Anything in particular holding up the stabilization here? The implementation is trivial and docs lgtm. |
I would like to add methods that return an exact |
These methods are a little odd, but seem reasonable to me following the example given: #62756 (comment) |
Given how straightforward these methods are, I don't think there's any problem stabilising them? |
They're straightforward in implementation, but conceptually tricky at a glance. I think the docs will need some fleshing out before stabilizing but I don't have any other concerns if somebody wants to write a PR! |
This needs more testing with various interesting values that could produce interesting floating point numbers, and should not be stabilized without such. |
#106570 tests were added in this PR |
…Titor add tests for div_duration_* functions Per rust-lang#63139 (comment) this adds unit tests for the functions that will hopefully effectively demonstrate that `div_duration` is ready to be stabilized.
…Titor add tests for div_duration_* functions Per rust-lang#63139 (comment) this adds unit tests for the functions that will hopefully effectively demonstrate that `div_duration` is ready to be stabilized.
…Titor add tests for div_duration_* functions Per rust-lang#63139 (comment) this adds unit tests for the functions that will hopefully effectively demonstrate that `div_duration` is ready to be stabilized.
add tests for div_duration_* functions Per rust-lang/rust#63139 (comment) this adds unit tests for the functions that will hopefully effectively demonstrate that `div_duration` is ready to be stabilized.
Rollup merge of rust-lang#124667 - newpavlov:stabilize_div_duration, r=jhpratt Stabilize `div_duration` Closes rust-lang#63139
Rust PR: #62756
This feature adds the following methods to
Duration
:div_duration_f64(self, rhs: Duration) -> f64
div_duration_f32(self, rhs: Duration) -> f32
The text was updated successfully, but these errors were encountered: