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 avoids monomorphization
B
Callers can pass Vecs, arrays, ranges or iterator chains without allocating a Vec first
C
It allows mutation
D
It's always faster to index