[−][src]Trait rustc_mir_build::thir::util::UserAnnotatedTyHelpers

pub(crate) trait UserAnnotatedTyHelpers<'tcx> {
    pub(crate) fn tcx(&self) -> TyCtxt<'tcx>;
pub(crate) fn typeck_results(&self) -> &TypeckResults<'tcx>; pub(crate) fn user_substs_applied_to_ty_of_hir_id(
        &self,
        hir_id: HirId
    ) -> Option<CanonicalUserType<'tcx>> { ... } }

Required methods

pub(crate) fn tcx(&self) -> TyCtxt<'tcx>[src]

pub(crate) fn typeck_results(&self) -> &TypeckResults<'tcx>[src]

Loading content...

Provided methods

pub(crate) fn user_substs_applied_to_ty_of_hir_id(
    &self,
    hir_id: HirId
) -> Option<CanonicalUserType<'tcx>>
[src]

Looks up the type associated with this hir-id and applies the user-given substitutions; the hir-id must map to a suitable type.

Loading content...

Implementors

impl<'tcx, '_> UserAnnotatedTyHelpers<'tcx> for Cx<'_, 'tcx>[src]

impl<'tcx, '_> UserAnnotatedTyHelpers<'tcx> for PatCtxt<'_, 'tcx>[src]

Loading content...