pub enum DeclItem {
Show 18 variants
PkgBody(PkgBody),
PkgInst(PkgInst),
PkgDecl(PkgDecl),
TypeDecl(TypeDecl),
SubtypeDecl(SubtypeDecl),
ObjDecl(ObjDecl),
AliasDecl(AliasDecl),
UseClause(Span, Spanned<Vec<CompoundName>>),
SubprogDecl(Subprog),
CompDecl(CompDecl),
DisconDecl(DisconSpec),
CfgSpec(CfgSpec),
AttrDecl(AttrDecl),
PortgenMap(Span, Spanned<PortgenKind>, ParenElems),
PortgenClause(Span, Spanned<PortgenKind>, Spanned<Vec<IntfDecl>>),
GroupDecl(GroupDecl),
VunitBindInd(()),
BlockCompCfg(BlockCompCfg),
}
Expand description
A declarative item.
Variants§
PkgBody(PkgBody)
PkgInst(PkgInst)
PkgDecl(PkgDecl)
TypeDecl(TypeDecl)
SubtypeDecl(SubtypeDecl)
ObjDecl(ObjDecl)
AliasDecl(AliasDecl)
UseClause(Span, Spanned<Vec<CompoundName>>)
SubprogDecl(Subprog)
CompDecl(CompDecl)
DisconDecl(DisconSpec)
CfgSpec(CfgSpec)
AttrDecl(AttrDecl)
PortgenMap(Span, Spanned<PortgenKind>, ParenElems)
PortgenClause(Span, Spanned<PortgenKind>, Spanned<Vec<IntfDecl>>)
GroupDecl(GroupDecl)
VunitBindInd(())
BlockCompCfg(BlockCompCfg)
Trait Implementations§
Source§impl HasSpan for DeclItem
impl HasSpan for DeclItem
Source§fn human_span(&self) -> Span
fn human_span(&self) -> Span
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever
span()
returns.impl Eq for DeclItem
impl StructuralPartialEq for DeclItem
Auto Trait Implementations§
impl Freeze for DeclItem
impl RefUnwindSafe for DeclItem
impl Send for DeclItem
impl Sync for DeclItem
impl Unpin for DeclItem
impl UnwindSafe for DeclItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more