Is there a RFC or discussion for adding implementations of Index
and IndexMut
for other numeric types? I've seen only this. For unsigned types it's logical to be able to index slices (u64
on 32-bit machine should be covered by usual checks), and for signed we can just panic on negative values. In some my programs I have a noticeable amount of as usize
boilerplate (I work with u8
and u16
indexes to save memory), which I would be happy to remove.
1 Like