Should SliceIndex be implemented generically over RangeBounds<usize>

Currently, SliceIndex is implemented for Range<usize>, RangeTo<usize>, RangeFrom<usize>, RangeInclusive<usize>, and RangeToInclusive<usize>, all of which implement RangeBounds<usize>.

Should it instead be implemented more generically for R: RangeBounds<usize>?

Some previous discussion:

1 Like