3 ms·
Rust does optimize iterators, just not random access. You can even turn off the bound checks with get_unchecked, if you really really need unchecked random acce
by logophobia 11y ago
Rust does optimize iterators, just not random access. You can even turn off the bound checks with get_unchecked, if you really really need unchecked random access.
- steveklabnik 11y ago(and for loops use iterators under the hood)