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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.