diff options
| author | kennytm <kennytm@gmail.com> | 2019-03-16 14:56:42 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2019-03-16 22:40:02 +0800 |
| commit | c6569ecb76065ed13bd70ac9387ccd9ab84e1c50 (patch) | |
| tree | 4059ec8325e45b60673197476b98d59a387ad3c9 /src/test/incremental/thinlto | |
| parent | d1744728a0166723228676dae5725078ae45406a (diff) | |
| parent | 78b248dc4c17581211aaed5c3a449e5b07ebdb52 (diff) | |
| download | rust-c6569ecb76065ed13bd70ac9387ccd9ab84e1c50.tar.gz rust-c6569ecb76065ed13bd70ac9387ccd9ab84e1c50.zip | |
Rollup merge of #59102 - newpavlov:duration_float, r=alexcrichton
Consistent naming for duration_float methods and additional f32 methods `duration_float` tracking issue: #54361 New list of methods: - `as_secs_f64(&self) -> f64` - `as_secs_f32(&self) -> f32` - `from_secs_f64(secs: f64) -> Duration` - `from_secs_f32(secs: f32) -> Duration` - `mul_f64(self, rhs: f64) -> Duration` - `mul_f32(self, rhs: f32) -> Duration` - `div_f64(self, rhs: f64) -> Duration` - `div_f32(self, rhs: f64) -> Duration` - `div_duration_f64(self, rhs: Duration) -> f64` - `div_duration_f32(self, rhs: Duration) -> f32` With [`num_traits::Float`](https://docs.rs/num-traits/0.2.6/num_traits/float/trait.Float.html) we could've reduced number of methods by factor of two, but unfortunately it's not part of `std`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
