pub struct Arenas2<'t> {
    pub scope_data: Arena<ScopeData<'t>>,
    pub library: Arena<Library<'t>>,
    pub package: Arena<Package2<'t>>,
    pub type_decl: Arena<TypeDecl2<'t>>,
    pub subtype_ind: Arena<SubtypeInd2<'t>>,
    pub const_decl: Arena<ConstDecl<'t>>,
    pub lit_expr: Arena<LitExpr>,
    pub package_slot: Arena<Slot<'t, Package2<'t>>>,
    pub type_decl_slot: Arena<Slot<'t, TypeDecl2<'t>>>,
    pub subtype_ind_slot: Arena<Slot<'t, SubtypeInd2<'t>>>,
    pub const_decl_slot: Arena<Slot<'t, ConstDecl<'t>>>,
}
Expand description

An arena to allocate HIR nodes into.

Fields

scope_data: Arena<ScopeData<'t>>library: Arena<Library<'t>>package: Arena<Package2<'t>>type_decl: Arena<TypeDecl2<'t>>subtype_ind: Arena<SubtypeInd2<'t>>const_decl: Arena<ConstDecl<'t>>lit_expr: Arena<LitExpr>package_slot: Arena<Slot<'t, Package2<'t>>>type_decl_slot: Arena<Slot<'t, TypeDecl2<'t>>>subtype_ind_slot: Arena<Slot<'t, SubtypeInd2<'t>>>const_decl_slot: Arena<Slot<'t, ConstDecl<'t>>>

Implementations

Create a new arena.

Trait Implementations

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.