Skip to main content

projected_field_ty

Function projected_field_ty 

Source
pub(crate) fn projected_field_ty<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
    path: &[usize],
) -> Option<Ty<'tcx>>
Expand description

Resolve a field-index path against its root type, including Some/Ok wrappers.