External Publication
Visit Post

Introduce a way to construct Range from start + length

Rust Internals [Unofficial] March 12, 2026
Source

This works, but just for slicing (and looks quite wacky to me). Range is a structure by itself, which can be used outside of slicing too, and can be used to store, well, a range, instead of defining separate start and len/end fields.

Discussion in the ATmosphere

Loading comments...