flux_rustc_bridge

Trait ToRustc

Source
pub trait ToRustc<'tcx> {
    type T;

    // Required method
    fn to_rustc(&self, tcx: TyCtxt<'tcx>) -> Self::T;
}

Required Associated Types§

Source

type T

Required Methods§

Source

fn to_rustc(&self, tcx: TyCtxt<'tcx>) -> Self::T

Implementations on Foreign Types§

Source§

impl<'tcx> ToRustc<'tcx> for Ty<'tcx>

Source§

type T = Ty<'tcx>

Source§

fn to_rustc(&self, _tcx: TyCtxt<'tcx>) -> Self

Implementors§

Source§

impl<'tcx> ToRustc<'tcx> for AliasKind

Source§

type T = AliasTyKind

Source§

impl<'tcx> ToRustc<'tcx> for ExistentialPredicate

Source§

type T = ExistentialPredicate<TyCtxt<'tcx>>

Source§

impl<'tcx> ToRustc<'tcx> for GenericArg

Source§

type T = GenericArg<'tcx>

Source§

impl<'tcx> ToRustc<'tcx> for Region

Source§

type T = Region<'tcx>

Source§

impl<'tcx> ToRustc<'tcx> for ValTree

Source§

type T = ValTree<'tcx>

Source§

impl<'tcx> ToRustc<'tcx> for AdtDef

Source§

type T = AdtDef<'tcx>

Source§

impl<'tcx> ToRustc<'tcx> for AliasTy

Source§

type T = AliasTy<TyCtxt<'tcx>>

Source§

impl<'tcx> ToRustc<'tcx> for BoundRegion

Source§

impl<'tcx> ToRustc<'tcx> for Const

Source§

type T = Const<'tcx>

Source§

impl<'tcx> ToRustc<'tcx> for FnSig

Source§

type T = FnSig<TyCtxt<'tcx>>

Source§

impl<'tcx> ToRustc<'tcx> for flux_rustc_bridge::ty::Ty

Source§

type T = Ty<'tcx>

Source§

impl<'tcx> ToRustc<'tcx> for UnevaluatedConst

Source§

type T = UnevaluatedConst<TyCtxt<'tcx>>

Source§

impl<'tcx> ToRustc<'tcx> for GenericArgs

Source§

type T = &'tcx RawList<(), GenericArg<'tcx>>

Source§

impl<'tcx, V> ToRustc<'tcx> for Binder<V>
where V: ToRustc<'tcx, T: TypeVisitable<TyCtxt<'tcx>>>,

Source§

type T = Binder<TyCtxt<'tcx>, <V as ToRustc<'tcx>>::T>