fn peel_refs(expr: &P<Expr>) -> P<Expr>
Expand description
Removes all leading immutable references from an expression.
This is used to strip away any number of leading &
from an expression
(e.g., &&&T
becomes T
). Only removes immutable references; mutable
references are preserved.