Function clippy_utils::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.
pub fn get_parent_as_impl(tcx: TyCtxt<'_>, id: HirId) -> Option<&Impl<'_>>
Gets the parent node if it’s an impl block.