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

Method children_mut

src/expr/src/visit.rs:684–702  ·  view source on GitHub ↗
(&'a mut self)

Source from the content-addressed store, hash-verified

682 }
683
684 fn children_mut<'a>(&'a mut self) -> impl DoubleEndedIterator<Item = &'a mut A>
685 where
686 A: 'a,
687 {
688 let mut v: Vec<&mut A> = vec![];
689
690 match self {
691 A::Add(lhs, rhs) => {
692 v.push(&mut **lhs);
693 v.push(&mut **rhs)
694 }
695 A::Lit(_) => (),
696 A::FrB(b) => {
697 v.append(&mut b.direct_sub_a_mut());
698 }
699 }
700
701 v.into_iter()
702 }
703 }
704
705 impl VisitChildren<B> for A {

Callers 7

visit_mut_childrenMethod · 0.45
visit_mut_postMethod · 0.45
try_visit_mut_postMethod · 0.45
visit_mut_preMethod · 0.45
try_visit_mut_preMethod · 0.45
visit_mut_pre_postMethod · 0.45

Calls 5

direct_sub_a_mutMethod · 0.80
direct_sub_b_mutMethod · 0.80
pushMethod · 0.45
appendMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected