pub struct HirCode {
Show 25 fields pub items: IndexVec<ItemId, Item>, pub exprs: IndexVec<ExprId, Expr>, pub source_ranges: IndexVec<ItemId, SourceRange>, pub decl_refs: IndexVec<DeclRefId, DeclRef>, pub decls: IndexVec<DeclId, Decl>, pub pattern_binding_decls: IndexVec<PatternBindingDeclId, PatternBindingDecl>, pub decl_attributes: HashMap<DeclId, Vec<Attribute>>, pub expr_to_items: IndexVec<ExprId, ItemId>, pub decl_to_items: IndexVec<DeclId, ItemId>, pub names: IndexVec<DeclId, Sym>, pub explicit_tys: IndexVec<DeclId, Option<ExprId>>, pub global_scopes: IndexVec<SourceFileId, ModScopeId>, pub imper_scopes: IndexVec<ImperScopeId, ImperScope>, pub mod_scopes: IndexVec<ModScopeId, ModScope>, pub imper_ns: IndexVec<ImperScopeNsId, ImperScopeNs>, pub mod_ns: IndexVec<ModScopeNsId, ModScopeNs>, pub condition_ns: IndexVec<ConditionNsId, ConditionNs>, pub generic_context_ns: IndexVec<GenericContextNsId, GenericContextNs>, pub cast_counter: IndexCounter<CastId>, pub structs: IndexVec<StructId, Struct>, pub enums: IndexVec<EnumId, Enum>, pub extern_mods: IndexVec<ExternModId, ExternMod>, pub struct_lits: IndexCounter<StructLitId>, pub generic_ctxs: IndexVec<GenericCtxId, GenericCtx>, pub item_generic_ctxs: IndexVec<ItemId, GenericCtxId>,
}

Fields

items: IndexVec<ItemId, Item>exprs: IndexVec<ExprId, Expr>source_ranges: IndexVec<ItemId, SourceRange>decl_refs: IndexVec<DeclRefId, DeclRef>decls: IndexVec<DeclId, Decl>pattern_binding_decls: IndexVec<PatternBindingDeclId, PatternBindingDecl>decl_attributes: HashMap<DeclId, Vec<Attribute>>expr_to_items: IndexVec<ExprId, ItemId>decl_to_items: IndexVec<DeclId, ItemId>names: IndexVec<DeclId, Sym>explicit_tys: IndexVec<DeclId, Option<ExprId>>global_scopes: IndexVec<SourceFileId, ModScopeId>imper_scopes: IndexVec<ImperScopeId, ImperScope>mod_scopes: IndexVec<ModScopeId, ModScope>imper_ns: IndexVec<ImperScopeNsId, ImperScopeNs>mod_ns: IndexVec<ModScopeNsId, ModScopeNs>condition_ns: IndexVec<ConditionNsId, ConditionNs>generic_context_ns: IndexVec<GenericContextNsId, GenericContextNs>cast_counter: IndexCounter<CastId>structs: IndexVec<StructId, Struct>enums: IndexVec<EnumId, Enum>extern_mods: IndexVec<ExternModId, ExternMod>struct_lits: IndexCounter<StructLitId>generic_ctxs: IndexVec<GenericCtxId, GenericCtx>item_generic_ctxs: IndexVec<ItemId, GenericCtxId>

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.