pub trait RustcInternal<'tcx> {
    type T;

    // Required method
    fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T;
}
Expand description

Trait used to translate a stable construct to its rustc counterpart.

This is basically a mirror of crate::rustc_smir::Stable.

Required Associated Types§

source

type T

Required Methods§

source

fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T

Implementations on Foreign Types§

source§

impl<'tcx> RustcInternal<'tcx> for GenericArgKind

§

type T = GenericArg<'tcx>

source§

fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T

source§

impl<'tcx> RustcInternal<'tcx> for DefId

§

type T = DefId

source§

fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T

source§

impl<'tcx> RustcInternal<'tcx> for Const

§

type T = Const<'tcx>

source§

fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T

source§

impl<'tcx> RustcInternal<'tcx> for GenericArgs

§

type T = &'tcx List<GenericArg<'tcx>>

source§

fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T

source§

impl<'tcx> RustcInternal<'tcx> for Region

§

type T = Region<'tcx>

source§

fn internal(&self, _tables: &mut Tables<'tcx>) -> Self::T

source§

impl<'tcx> RustcInternal<'tcx> for Ty

§

type T = Ty<'tcx>

source§

fn internal(&self, tables: &mut Tables<'tcx>) -> Self::T

Implementors§