Trait rustc_middle::ty::subst::Subst[][src]

pub trait Subst<'tcx>: Sized {
    fn subst_spanned(
        self,
        tcx: TyCtxt<'tcx>,
        substs: &[GenericArg<'tcx>],
        span: Option<Span>
    ) -> Self; fn subst(self, tcx: TyCtxt<'tcx>, substs: &[GenericArg<'tcx>]) -> Self { ... } }

Required methods

fn subst_spanned(
    self,
    tcx: TyCtxt<'tcx>,
    substs: &[GenericArg<'tcx>],
    span: Option<Span>
) -> Self
[src]

Loading content...

Provided methods

fn subst(self, tcx: TyCtxt<'tcx>, substs: &[GenericArg<'tcx>]) -> Self[src]

Loading content...

Implementors

impl<'tcx, T: TypeFoldable<'tcx>> Subst<'tcx> for T[src]

Loading content...