Introduce RangeInclusive::{new, start, end} methods and make the fields private. by kennytm · Pull Request #49724 · rust-lang/rust (original) (raw)
@scottmcm Added docs to say the values are unspecified.
I expect we are going to abandon RFC 1980 since the representation is now a private detail, in favor of performance. There will likely be a boolean field representing whether iteration has been completed. 1..=4
will end up with start=5, end=4, is_empty=true
, and 250..=255
will end up with start=0, end=255, is_empty=true
.