Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why are bounds checks a performance concern, and how are they usually avoided safely?
A
Bounds checks only exist in debug builds
B
Each v[i] checks i < len; iterators, slice patterns or asserting lengths upfront let the compiler drop checks
C
They can only be avoided with unsafe get_unchecked
D
They don't affect performance