peel_refs

Function peel_refs 

Source
fn peel_refs(expr: &Box<Expr>) -> Box<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.