Add functions Duration::try_from_secs_{f32, f64}

This also adds the error type used, `FromSecsError` and its `impl`s.
This commit is contained in:
mbartlett21
2021-06-14 12:16:13 +00:00
parent 26c2d1f408
commit c2c1ca071f
3 changed files with 132 additions and 0 deletions

View File

@@ -256,6 +256,7 @@
#![feature(doc_masked)]
#![feature(doc_spotlight)]
#![feature(dropck_eyepatch)]
#![feature(duration_checked_float)]
#![feature(duration_constants)]
#![feature(duration_zero)]
#![feature(exact_size_is_empty)]