Function clippy_utils::ty::is_type_lang_item
source ยท pub fn is_type_lang_item(
cx: &LateContext<'_>,
ty: Ty<'_>,
lang_item: LangItem
) -> bool
Expand description
Checks if the type is equal to a lang item.
Returns false
if the LangItem
is not defined.