Struct moore_vhdl::hir::SubtypeDecl
source · [−]pub struct SubtypeDecl {
pub parent: ScopeRef,
pub name: Spanned<Name>,
pub subty: SubtypeIndRef,
}
Expand description
A subtype declaration as per IEEE 1076-2008 section 6.3.
Fields
parent: ScopeRef
The parent scope.
name: Spanned<Name>
The subtype name.
subty: SubtypeIndRef
The actualy subtype.
Trait Implementations
sourceimpl<'a> Alloc<'a, 'a, SubtypeDecl> for Arenas
impl<'a> Alloc<'a, 'a, SubtypeDecl> for Arenas
sourcefn alloc(&'a self, value: SubtypeDecl) -> &'a mut SubtypeDecl
fn alloc(&'a self, value: SubtypeDecl) -> &'a mut SubtypeDecl
Allocate a value of type T
.
sourceimpl Debug for SubtypeDecl
impl Debug for SubtypeDecl
sourceimpl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<SubtypeDeclRef, &'ctx SubtypeDecl> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<SubtypeDeclRef, &'ctx SubtypeDecl> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
sourcefn make(&self, id: SubtypeDeclRef) -> Result<&'ctx SubtypeDecl>
fn make(&self, id: SubtypeDeclRef) -> Result<&'ctx SubtypeDecl>
Creates the node with the given ID. Read more
Auto Trait Implementations
impl RefUnwindSafe for SubtypeDecl
impl Send for SubtypeDecl
impl Sync for SubtypeDecl
impl Unpin for SubtypeDecl
impl UnwindSafe for SubtypeDecl
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