# Trait rustc_middle::ty::inherent::DefId

source ·

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

## Required Methods§

source

#### fn as_local(self) -> Option<<I as Interner>::LocalDefId>

## Object Safety§

This trait is not object safe.

## Implementations on Foreign Types§

source§

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

source§

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

## Implementors§