pub fn default_rewrite_expr<R: ExprRewriter + ?Sized>(
rewriter: &mut R,
expr: ExprImpl,
) -> ExprImpl
Expand description
The default implementation of ExprRewriter::rewrite_expr
that simply dispatches to other
methods based on the type of the expression.
You can use this function as a helper to reduce boilerplate code when implementing the trait.