pub fn is_res_lang_ctor(
cx: &LateContext<'_>,
res: Res,
lang_item: LangItem,
) -> boolExpand description
Checks if a Res refers to a constructor of a LangItem
For example, use this to check whether a function call or a pattern is Some(..).