Skip to content

Conversation

bluss
Copy link
Contributor

@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
Contributor

r? @aturon

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

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Collaborator

bors commented Nov 22, 2016

📌 Commit 22739a1 has been approved by alexcrichton

@bors
Copy link
Collaborator

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