[−][src]Function c2rust_refactor::matcher::mut_visit_match_with
pub fn mut_visit_match_with<'a, 'tcx, P, T, V, F>(
init_mcx: MatchCtxt<'a, 'tcx>,
pattern: P,
target: &mut T,
callback: F
) where
P: Pattern<V>,
T: MutVisit,
F: FnMut(&mut V, MatchCtxt<'a, 'tcx>),
Find every match for pattern
within target
, and rewrite each one by invoking callback
.