Skip to main content

adt_from_ty

Function adt_from_ty 

Source
pub fn adt_from_ty<'tcx>(ty: Ty<'tcx>) -> Option<(DefId, GenericArgsRef<'tcx>)>
Expand description

Unwrap Ref / RawPtr / Adt layers to get the innermost ADT definition.