Struct moore_vhdl::hir::PackageBody
source · [−]pub struct PackageBody {
pub parent: ScopeRef,
pub name: Spanned<Name>,
pub pkg: Spanned<LatentPkgRef>,
pub decls: Vec<DeclInPkgBodyRef>,
}
Expand description
A package body.
See IEEE 1076-2008 section 4.8.
Fields
parent: ScopeRef
The parent scope.
name: Spanned<Name>
The package name.
pkg: Spanned<LatentPkgRef>
The package which this body targets.
decls: Vec<DeclInPkgBodyRef>
The declarations.
Trait Implementations
sourceimpl<'a> Alloc<'a, 'a, PackageBody> for Arenas
impl<'a> Alloc<'a, 'a, PackageBody> for Arenas
sourcefn alloc(&'a self, value: PackageBody) -> &'a mut PackageBody
fn alloc(&'a self, value: PackageBody) -> &'a mut PackageBody
Allocate a value of type T
.
sourceimpl Debug for PackageBody
impl Debug for PackageBody
sourceimpl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<PkgBodyRef, &'ctx PackageBody> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<PkgBodyRef, &'ctx PackageBody> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
sourcefn make(&self, id: PkgBodyRef) -> Result<&'ctx PackageBody>
fn make(&self, id: PkgBodyRef) -> Result<&'ctx PackageBody>
Creates the node with the given ID. Read more
Auto Trait Implementations
impl RefUnwindSafe for PackageBody
impl Send for PackageBody
impl Sync for PackageBody
impl Unpin for PackageBody
impl UnwindSafe for PackageBody
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