mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() Allow `IndexSlice` to be indexed by ranges. This comes with some annoyances as the index type can no longer inferred from indexing expressions. The biggest offender for this is `IndexVec::from_fn_n(|idx| ..., n)` where the index type won't be inferred from the call site or any index expressions inside the closure. My main use case for this is mapping a `Place` to `Range<Idx>` for value tracking where the range represents all the values the place contains. |
||
---|---|---|
.. | ||
bit_set | ||
interval | ||
vec | ||
bit_set.rs | ||
idx.rs | ||
interval.rs | ||
lib.rs | ||
slice.rs | ||
vec.rs |