MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / visit

Method visit

crates/expr/src/expr.rs:278–288  ·  view source on GitHub ↗

Walk the expression tree and call `f` on each node

(&self, f: &mut impl FnMut(&Self))

Source from the content-addressed store, hash-verified

276impl 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)) {

Callers 4

resolve_views_for_exprFunction · 0.45
collect_viewsMethod · 0.45
deserialize_strMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected