Function clippy_utils::ty::variant_of_res
source · 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
pub fn variant_of_res<'tcx>(
cx: &LateContext<'tcx>,
res: Res
) -> Option<&'tcx VariantDef>
Gets the struct or enum variant from the given Res