rustc_type_ir::inherent

Trait DefId

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

Required Methods§

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.

Implementors§