Glossary: Data Structures and Algorithms in Rust
usize, isize
Also written: usize, isize
The whole-number types for positions in a list: usize can't go below 0, and isize is signed so it can hold -1. Indexes must be usize, so isize values are converted with as usize.