Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterator::size_hint() #7

Closed
Anders429 opened this issue Feb 17, 2021 · 0 comments · Fixed by #9
Closed

Iterator::size_hint() #7

Anders429 opened this issue Feb 17, 2021 · 0 comments · Fixed by #9
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Anders429
Copy link
Owner

Add an implementation for Iterator::size_hint() to the Iterators.

This should be fairly straight forward. The upper bound will be the length of the internal slice or vector, and the lower bound will be zero or one, depending on if iteration is completed yet.

Using autocfg, we may be able to implement TrustedLen for these iterators as well. For this to happen, channel probing will need to land on the autocfg side first.

@Anders429 Anders429 added enhancement New feature or request good first issue Good for newcomers labels Feb 17, 2021
@Anders429 Anders429 added this to the 0.3.0 milestone Feb 17, 2021
@Anders429 Anders429 linked a pull request Feb 18, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant