Auto merge of #18494 - frewsxcv:frewsxcv-size-hint, r=jdm

Implement `size_hint` for more iterators.

```
implement size hint for
more iterators because why
not we like fast things
```

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18494)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-09-13 19:38:32 -05:00 committed by GitHub
commit bb2030a493
8 changed files with 36 additions and 0 deletions

View file

@ -45,6 +45,10 @@ where
fn next(&mut self) -> Option<Self::Item> {
self.0.next().map(|entry| &entry.sheet)
}
fn size_hint(&self) -> (usize, Option<usize>) {
self.0.size_hint()
}
}
/// An iterator over the flattened view of the stylesheet collections.