## DefId

# Trait DefId

    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§

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

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

## 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

Source§

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

Source§

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

## Implementors§