Struct moore_vhdl::hir::Arenas2
source · [−]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
Trait Implementations
sourceimpl<'a, 't> Alloc<'a, 'a, Slot<'t, SubtypeInd2<'t>>> for Arenas2<'t> where
't: 'a,
impl<'a, 't> Alloc<'a, 'a, Slot<'t, SubtypeInd2<'t>>> for Arenas2<'t> where
't: 'a,
sourcefn alloc(
&'a self,
value: Slot<'t, SubtypeInd2<'t>>
) -> &'a mut Slot<'t, SubtypeInd2<'t>>
fn alloc(
&'a self,
value: Slot<'t, SubtypeInd2<'t>>
) -> &'a mut Slot<'t, SubtypeInd2<'t>>
Allocate a value of type T
.
sourceimpl<'a, 't> Alloc<'a, 'a, SubtypeInd2<'t>> for Arenas2<'t> where
't: 'a,
impl<'a, 't> Alloc<'a, 'a, SubtypeInd2<'t>> for Arenas2<'t> where
't: 'a,
sourcefn alloc(&'a self, value: SubtypeInd2<'t>) -> &'a mut SubtypeInd2<'t>
fn alloc(&'a self, value: SubtypeInd2<'t>) -> &'a mut SubtypeInd2<'t>
Allocate a value of type T
.
Auto Trait Implementations
impl<'t> !RefUnwindSafe for Arenas2<'t>
impl<'t> !Send for Arenas2<'t>
impl<'t> !Sync for Arenas2<'t>
impl<'t> Unpin for Arenas2<'t>
impl<'t> !UnwindSafe for Arenas2<'t>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more