diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2017-04-23 21:14:32 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2017-05-21 01:48:03 -0700 |
| commit | f166bd9857dac3c66e812ba6bc33e59494c3fef2 (patch) | |
| tree | d29f84b35bd2428ade46b8282c69f593a9f8645b /src/libstd/thread | |
| parent | 0bd9e1f5e6e9832691d033f1cc32409f5e2a9145 (diff) | |
| download | rust-f166bd9857dac3c66e812ba6bc33e59494c3fef2.tar.gz rust-f166bd9857dac3c66e812ba6bc33e59494c3fef2.zip | |
Make RangeInclusive just a two-field struct
Not being an enum improves ergonomics, especially since NonEmpty could be Empty. It can still be iterable without an extra "done" bit by making the range have !(start <= end), which is even possible without changing the Step trait. Implements RFC 1980
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions
