Skip to content

salvage some of core::old_iter for core::iter, remove the rest #6104

Closed
@thestinger

Description

@thestinger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions