Skip to content

Split up the Iterator trait #17701

Closed
@nrc

Description

@nrc

When #17670 lands, we will no longer be able to make Iterator trait objects. The only method on Iterator which is object safe is next, I assume we should therefore pull that out to its own trait and Iterator should extend that, but that means all implementers of Iterator will have to change. So, perhaps there is a better way.

cc @aturon

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions