MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / direct_sub_a_mut

Method direct_sub_a_mut

src/expr/src/visit.rs:559–575  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

557 }
558
559 fn direct_sub_a_mut(&mut self) -> Vec<&mut A> {
560 let mut subs: Vec<&mut A> = vec![];
561
562 let mut worklist = vec![self];
563 while let Some(b) = worklist.pop() {
564 match b {
565 B::Mul(lhs, rhs) => {
566 worklist.push(&mut **lhs);
567 worklist.push(&mut **rhs);
568 }
569 B::Lit(_) => (),
570 B::FrA(a) => subs.push(&mut **a),
571 }
572 }
573
574 subs
575 }
576 }
577
578 impl VisitChildren<A> for A {

Callers 1

children_mutMethod · 0.80

Calls 2

popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected