HirNode in clippy_utils::macros - Rust
Description: A node with a `HirId` and a `Span`

Skip to main content

## HirNode

# Trait HirNode

Source

    pub trait HirNode {
        // Required methods
        fn hir_id(&self) -> HirId;
        fn span(&self) -> Span;
    }

Expand description

A node with a `HirId` and a `Span`

## Required Methods§

Source

#### fn hir_id(&self) -> HirId

Source

#### fn span(&self) -> Span

## Implementations on Foreign Types§

Source§

### impl HirNode for Expr<'_>

Source§

#### fn hir_id(&self) -> HirId

Source§

#### fn span(&self) -> Span

Source§

### impl HirNode for Item<'_>

Source§

#### fn hir_id(&self) -> HirId

Source§

#### fn span(&self) -> Span

Source§

### impl HirNode for Pat<'_>

Source§

#### fn hir_id(&self) -> HirId

Source§

#### fn span(&self) -> Span

## Implementors§