Function get_field_by_name

Source
pub fn get_field_by_name<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
    name: Symbol,
) -> Option<Ty<'tcx>>
Expand description

Gets the type of a field by name.