Overloaded slice notation via traits


#1

I learned from the slice-notation RFC that it adds overloaded slice notation via traits Slice and SliceMut. But where can I find these two traits in std? Any updates on this RFC?


#2

This is done by the Index and IndexMut traits, which can be implemented for ranges (the types of objects created by the range syntax).