Skip to main content

DefIdGetter

Trait DefIdGetter 

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

Required Methods§

Source

fn get_def_id(self) -> Option<<I as Interner>::DefId>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'tcx> DefIdGetter<TyCtxt<'tcx>> for LateParamRegionKind

Implementors§