clippy_utils::consts

Function field_of_struct

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