3 ms·
It has both optional and panicking ways to index, but it steers users away from using indexing in the first place. The `for` loop is based on the Iterator trai
by pornel 5y ago
It has both optional and panicking ways to index, but it steers users away from using indexing in the first place.
The `for` loop is based on the Iterator trait. Iterators typically optimize better than indexing, and can't panic.