You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the adaptors implemented on top of BaseIter should be removed and reimplemented as generic adaptors for any internal iterator. The traits are generally useful, but BaseIter is the wrong place for a size hint to be.
The only adaptors that can really take advantage of the hint are ones that convert to a container with the concept of reserving space. It should be possible to take advantage of the reserve on any iterator with a known size, not just each.
The text was updated successfully, but these errors were encountered:
Nominating for the backwards compatible milestone. I think most of this will end up scrapped and replaced with external iterators and an Iterable trait.
We do need generic internal iterator adaptors if we want good support for them, but there aren't actually any in this module working for anything beyond BaseIter.
All of the adaptors implemented on top of BaseIter should be removed and reimplemented as generic adaptors for any internal iterator. The traits are generally useful, but
BaseIter
is the wrong place for a size hint to be.The only adaptors that can really take advantage of the hint are ones that convert to a container with the concept of reserving space. It should be possible to take advantage of the reserve on any iterator with a known size, not just
each
.The text was updated successfully, but these errors were encountered: