Function clippy_utils::ty::adt_and_variant_of_res

source ยท
pub fn adt_and_variant_of_res<'tcx>(
    cx: &LateContext<'tcx>,
    res: Res
) -> Option<(AdtDef<'tcx>, &'tcx VariantDef)>
Expand description

Gets the struct or enum variant from the given Res