pub fn variant_of_res<'tcx>(
    cx: &LateContext<'tcx>,
    res: Res
) -> Option<&'tcx VariantDef>
Expand description

Gets the struct or enum variant from the given Res