pub fn adt_and_variant_of_res<'tcx>( cx: &LateContext<'tcx>, res: Res, ) -> Option<(AdtDef<'tcx>, &'tcx VariantDef)>
Gets the struct or enum variant from the given Res
Res