Clear this DFS, but keep its allocations for future reuse.
(&mut self)
| 75 | |
| 76 | /// Clear this DFS, but keep its allocations for future reuse. |
| 77 | pub fn clear(&mut self) { |
| 78 | let Dfs { stack, seen } = self; |
| 79 | stack.clear(); |
| 80 | seen.clear(); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /// An iterator that yields pairs of `(Event, ir::Block)` items as it performs a |