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