(&mut self)
| 31 | type Item = NodeId; |
| 32 | |
| 33 | fn next(&mut self) -> Option<Self::Item> { |
| 34 | match self { |
| 35 | Self::Normal { |
| 36 | parent_id, |
| 37 | children, |
| 38 | } => children |
| 39 | .next() |
| 40 | .map(|child| parent_id.with_same_tree(*child)), |
| 41 | Self::Graft(id) => id.take(), |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | fn size_hint(&self) -> (usize, Option<usize>) { |
| 46 | let len = self.len(); |
no test coverage detected