Struct rustc_trans::middle::typeck::CrateCtxtExperimental [-]  [+] [src]

pub struct CrateCtxt<'a, 'tcx> {
    // some fields omitted
}

Trait Implementations

impl<'a, 'tcx> ToTy<'tcx> for CrateCtxt<'a, 'tcx>

fn to_ty<RS: RegionScope>(&self, rs: &RS, ast_ty: &Ty) -> &'tcx TyS<'tcx>

impl<'a, 'tcx> AstConv<'tcx> for CrateCtxt<'a, 'tcx>

fn tcx(&'a self) -> &'a ctxt<'tcx>

fn get_item_ty(&self, id: DefId) -> Polytype<'tcx>

fn get_trait_def(&self, id: DefId) -> Rc<TraitDef<'tcx>>

fn ty_infer(&self, span: Span) -> &'tcx TyS<'tcx>

fn associated_types_of_trait_are_valid(&self, &'tcx TyS<'tcx>, DefId) -> bool

fn associated_type_binding(&self, span: Span, Option<&'tcx TyS<'tcx>>, DefId, DefId) -> &'tcx TyS<'tcx>