Closed YohDeadfall closed 2 months ago
Should there be a consuming iterator or this one is enough?
honestly I expected IntoIterator would have been for AnyArray and be consuming, yeah.
Also, to be clear, Array<'a, T>
has some complicated reasons why it's also Kinda Bad that are outside the scope of this PR, so I'm not too fussed right now.
We discussed this and this is probably fine as-is.
Fixes #1832.
The implementation isn't what I want, but it adds
into_iter
for&AnyArray
and I hope unblocking @thomcc. Later it would be better to get rid ofAnyArray
in its current state and useArray<AnyElement>
instead, I will investigate that possibility. But for now that is how it is and without any breaking change.