I am learning Rust and reading through docs, when i stumbled upon isize and usize data types. There was following mention in the docs:
The primary situation in which you’d use isize or usize is when indexing some sort of collection.
Collections are data types like vector or tuple. However I cannot see why isize and usize are beneficial to use when it comes to indexing. Can anyone explain?