Skip to content

Add explicit ZeroVec and VarZeroVec iterator types #4487

@sffc

Description

@sffc

The standard library exports concrete types for iterators. However, our ZeroVec types only return impl Iterator. This limits a certain amount of flexibility; for example, you can't put multiple iterators together into a list because the compiler doesn't know that the impl Iterators are going to be the same type.

I also question whether impl Iterator is highly efficient in terms of code size and performance. I remember pulling apart some spaghetti iterators into procedural code and getting a boost. Returning a concrete type could make code simpler to compile.

Thoughts? @Manishearth

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-zerovecComponent: Yoke, ZeroVec, DataBakequestionUnresolved questions; type unclear

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions