pub fn iter_fields<'tcx>(
    ty: Ty<'tcx>,
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    f: impl FnMut(Option<VariantIdx>, FieldIdx, Ty<'tcx>)
)
Expand description

Invokes f on all direct fields of ty.