Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
Associated type vs generic parameter: why is Iterator::Item an associated type?
A
Associated types are faster
B
It allows multiple Item types per iterator
C
A type has one natural item type for its iterator; associated types avoid ambiguous multiple impls and simplify signatures
D
Generic parameters can't be used in traits