[][src]Function c2rust_refactor::matcher::replace_expr

pub fn replace_expr<T: MutVisit>(
    st: &CommandState,
    cx: &RefactorCtxt,
    ast: &mut T,
    pat: &str,
    repl: &str
)

Replace all instances of expression pat with expression repl.