pub fn peel_refs(&'tcx self) -> Ty<'tcx> {
        let mut ty = self;
        while let Ref(_, inner_ty, _) = ty.kind {
            ty = inner_ty;
        }
        ty
    }
/// Peel off all reference types in this type until there are none left.
///
/// This method is idempotent, i.e. `ty.peel_refs().peel_refs() == ty.peel_refs()`.
///
/// # Examples
///
/// - `u8` -> `u8`
/// - `&'a mut u8` -> `u8`
/// - `&'a &'b u8` -> `u8`
/// - `&'a *const &'b u8 -> *const &'b u8`
Peel off all reference types in this type until there are none left.
This method is idempotent, i.e.
Peel off all reference types in this type until there are none left . This method is idempotent i . e .
pub fn peel_refs(&'tcx self) -> Ty<'tcx> {
        let mut ty = self;
        while let Ref(_, inner_ty, _) = ty.kind {
            ty = inner_ty;
        }
        ty
    }
pub fn peel_refs ( & ' tcx self ) -> Ty < ' tcx > { let mut ty = self ; while let Ref ( _ , inner_ty , _ ) = ty . kind { ty = inner_ty ; } ty }
Peel off all reference types in this type until there are none left.
Peel off all reference types in this type until there are none left .
&'tcx self
examples
None