pub fn remove_transparent_wrapper<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>
) -> Option<(PathSelector, Ty<'tcx>)>
Expand description

repr(transparent) is used on structs with a single non-zero-sized field (there may be additional zero-sized fields). Get the type and field index after removing the transparent wrapper