clippy_utils::ty

Function walk_ptrs_ty_depth

source
pub fn walk_ptrs_ty_depth(ty: Ty<'_>) -> (Ty<'_>, usize)
Expand description

Returns the base type for references and raw pointers, and count reference depth.