## HasHirId

# Trait HasHirId

Source

    pub trait HasHirId: Copy {
        // Required method
        fn hir_id(self) -> HirId;
    }

Expand description

Either a `HirId` or a type which can be identified by one.

## Required Methods§

Source

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

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementations on Foreign Types§

Source§

### impl HasHirId for &Expr<'_>

Source§

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

Source§

### impl HasHirId for HirId

Source§

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

## Implementors§