pub fn is_trait_impl_item(cx: &LateContext<'_>, hir_id: HirId) -> bool
Check if parent of a hir node is a trait implementation block. For example, f in
f
impl Trait for S { fn f() {} }