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