clippy_utils::macros

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§