The danger (as usual with adding impls) is in inference. Nobody wants to be forced to v[0_usize]
every time they index something with a literal, but that's exactly what happens if you impl both Index<usize>
and Index<u32>
. (And indexing by signed types is controversial.)
2 Likes