fn get_type_from_field<'tcx>(
cx: &LateContext<'tcx>,
field: &FieldDef,
args: GenericArgsRef<'tcx>,
) -> Ty<'tcx>Expand description
Getting the (normalized) type out of a field (for, e.g., an enum variant or a tuple).
fn get_type_from_field<'tcx>(
cx: &LateContext<'tcx>,
field: &FieldDef,
args: GenericArgsRef<'tcx>,
) -> Ty<'tcx>Getting the (normalized) type out of a field (for, e.g., an enum variant or a tuple).