Skip to main content

get_type_from_field

Function get_type_from_field 

Source
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).