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