Implement size_hint for more iterators.

```
implement size hint for
more iterators because why
not we like fast things
```
This commit is contained in:
Corey Farwell 2017-09-13 20:23:58 -04:00
parent cad3aff508
commit 9cd4535364
8 changed files with 36 additions and 0 deletions

View file

@ -765,6 +765,10 @@ impl<'a> Iterator for AbsoluteDescendantIter<'a> {
fn next(&mut self) -> Option<&'a mut Flow> {
self.iter.next().map(|info| FlowRef::deref_mut(&mut info.flow))
}
fn size_hint(&self) -> (usize, Option<usize>) {
self.iter.size_hint()
}
}
pub type AbsoluteDescendantOffsetIter<'a> = Zip<AbsoluteDescendantIter<'a>, IterMut<'a, Au>>;