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