clippy_utils

Function get_parent_as_impl

Source
pub fn get_parent_as_impl(tcx: TyCtxt<'_>, id: HirId) -> Option<&Impl<'_>>
Expand description

Gets the parent node if it’s an impl block.