3 ms·
This just adds verbosity - there's a blanket implementation of IntoIterator on Iterator so people would just learn to write for x in y.into_iter() and presuma
by tialaramex 4y ago
This just adds verbosity - there's a blanket implementation of IntoIterator on Iterator so people would just learn to write
for x in y.into_iter()
and presumably curse 3836293648 who made them do this extra typing for no purpose.
It doesn't, as you seem to imply fix the parent's problem, because both the container they thought they were getting, and the Option or Result they were actually getting, implement IntoIterator so they'll call into_iter() on it.