Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 270
A function takes `impl IntoIterator<Item = u32>` instead of `&Vec<u32>`. What's the benefit?
A
It avoids monomorphization
B
It's always faster to index
C
It allows mutation
D
Callers can pass Vecs, arrays, ranges or iterator chains without allocating a Vec first