Skip to main content

field_name_from_place

Function field_name_from_place 

Source
pub(crate) fn field_name_from_place<'tcx>(
    tcx: TyCtxt<'tcx>,
    adt_def_id: DefId,
    place: &ContractPlace<'tcx>,
) -> Option<String>
Expand description

The field name selected by the first Field projection of place on adt_def_id (e.g. ptr in self.ptr), if any.