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

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

Loading content...

Provided methods

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

Loading content...

Implementors

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

Loading content...