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

Forward ExactSizeIterator::len and is_empty for important iterator adaptors #37944

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

bluss
Copy link
Member

@bluss bluss commented Nov 22, 2016

Forward ExactSizeIterator::len and is_empty for important iterator adaptors

Because some iterators will provide improved version of len and/or is_empty,
adaptors should forward to those implementations if possible.

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 22, 2016

📌 Commit 22739a1 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Nov 24, 2016

⌛ Testing commit 22739a1 with merge a31ad75...

bors added a commit that referenced this pull request Nov 24, 2016
Forward ExactSizeIterator::len and is_empty for important iterator adaptors

Forward ExactSizeIterator::len and is_empty for important iterator adaptors

Because some iterators will provide improved version of len and/or is_empty,
adaptors should forward to those implementations if possible.
@bors bors merged commit 22739a1 into rust-lang:master Nov 24, 2016
@bluss bluss deleted the adaptors-are-empty branch November 24, 2016 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants