rustc_middle::ty::inherent

Trait DefId

Source
pub trait DefId<I>:
    Copy
    + Debug
    + Hash
    + Eq
    + TypeFoldable<I>
where I: Interner,
{ // Required methods fn is_local(self) -> bool; fn as_local(self) -> Option<<I as Interner>::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.

Implementations on Foreign Types§

Source§

impl<'tcx> DefId<TyCtxt<'tcx>> for DefId

Implementors§