clippy_utils

Function is_res_lang_ctor

source
pub fn is_res_lang_ctor(
    cx: &LateContext<'_>,
    res: Res,
    lang_item: LangItem,
) -> bool
Expand 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(..).