mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Implement size_hint
for more iterators.
``` implement size hint for more iterators because why not we like fast things ```
This commit is contained in:
parent
cad3aff508
commit
9cd4535364
8 changed files with 36 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/// The validity of the data in a given cascade origin.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue