Struct rustc::middle::typeck::CrateCtxtExperimental
[-]
[+]
[src]
pub struct CrateCtxt<'a, 'tcx> {
// some fields omitted
}pub struct CrateCtxt<'a, 'tcx> {
// some fields omitted
}impl<'a, 'tcx> ToTy for CrateCtxt<'a, 'tcx>fn to_ty<RS: RegionScope>(&self, rs: &RS, ast_ty: &Ty) -> timpl<'a, 'tcx> AstConv<'tcx> for CrateCtxt<'a, 'tcx>fn tcx<'a>(&'a self) -> &'a ctxt<'tcx>fn get_item_ty(&self, id: DefId) -> Polytypefn get_trait_def(&self, id: DefId) -> Rc<TraitDef>fn ty_infer(&self, span: Span) -> tfn associated_types_of_trait_are_valid(&self, _: t, _: DefId) -> boolfn associated_type_binding(&self, span: Span, _: Option<t>, _: DefId, _: DefId) -> t
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).