Skip to main content

peel_n_ty_refs

Function peel_n_ty_refs 

Source
pub fn peel_n_ty_refs(ty: Ty<'_>, n: usize) -> (Ty<'_>, Option<Mutability>)
Expand description

Peels off n references on the type. Returns the underlying type and, if any references were removed, whether the pointer is ultimately mutable or not.