DefId in rustc_type_ir::inherent - Rust
Description: API documentation for the Rust `DefId` trait in crate `rustc_type_ir`.

Skip to main content

## DefId

# Trait DefId

Source

    pub trait DefId<I: Interner, Local = <I as Interner>::LocalDefId>:
        Copy
        + Debug
        + Hash
        + Eq
        + TypeFoldable<I> {
        // Required methods
        fn is_local(self) -> bool;
        fn as_local(self) -> Option<Local>;
    }

## Required Methods§

Source

#### fn is_local(self) -> bool

Source

#### fn as_local(self) -> Option<Local>

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementors§