Skip to main content

subst_expr

Function subst_expr 

Source
pub fn subst_expr(expr: &Expr, old: &Expr, new_expr: &Expr) -> Expr
Expand description

Substitute old with new_expr everywhere it appears in expr.

Only performs exact structural matching (not modulo alpha-equivalence).