# Trait rustc_infer::infer::canonical::ir::inherent::AdtDef

source ·

    pub trait AdtDef<I>: Copy + Debug + Hash + Eqwhere
        I: Interner,{
        // Required method
        fn def_id(self) -> <I as Interner>::DefId;
    }

## Required Methods§

source

#### fn def_id(self) -> <I as Interner>::DefId

## Object Safety§

This trait is not object safe.

## Implementations on Foreign Types§

source§

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

source§

#### fn def_id(self) -> DefId

## Implementors§