Rust: Tracking issue for div_duration

Created on 30 Jul 2019  路  5Comments  路  Source: rust-lang/rust

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
B-unstable C-tracking-issue I-nominated Libs-Small Libs-Tracked T-libs requires-nightly

Most helpful comment

Anything in particular holding up the stabilization here? The implementation is trivial and docs lgtm.

All 5 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 u128, but that can wait.

These methods are a little odd, but seem reasonable to me following the example given: https://github.com/rust-lang/rust/pull/62756#issuecomment-516060456

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!

Was this page helpful?
0 / 5 - 0 ratings