Skip to content

HeaderMap::iter could be ExactSizedIterator #809

Description

@anuraaga

I was surprised that iterating over the entries in the HeaderMap doesn't provide an exact size. This is mainly because there is a len() method with the size of the map. I can provide an ExactSizedIterator wrapper but was wondering if it makes sense to implement it here to make it easier to preallocate transformations?

Metadata

Metadata

Assignees

No one assigned

    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