Walk the expression tree and call `f` on each node
(&self, f: &mut impl FnMut(&Self))
| 276 | impl RelExpr { |
| 277 | /// Walk the expression tree and call `f` on each node |
| 278 | pub fn visit(&self, f: &mut impl FnMut(&Self)) { |
| 279 | f(self); |
| 280 | match self { |
| 281 | Self::Select(lhs, _) |
| 282 | | Self::LeftDeepJoin(LeftDeepJoin { lhs, .. }) |
| 283 | | Self::EqJoin(LeftDeepJoin { lhs, .. }, ..) => { |
| 284 | lhs.visit(f); |
| 285 | } |
| 286 | Self::RelVar(..) => {} |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | /// Walk the expression tree and call `f` on each node |
| 291 | pub fn visit_mut(&mut self, f: &mut impl FnMut(&mut Self)) { |
no outgoing calls
no test coverage detected