Function clippy_utils::consts::field_of_struct

source ยท
fn field_of_struct<'tcx>(
    adt_def: AdtDef<'tcx>,
    tcx: TyCtxt<'tcx>,
    result: Const<'tcx>,
    field: &Ident,
) -> Option<Const<'tcx>>