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
Auto Trait Implementations
impl RefUnwindSafe for HirCode
impl Send for HirCode
impl Sync for HirCode
impl Unpin for HirCode
impl UnwindSafe for HirCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more