Struct moore_svlog::hir::VarDecl [−][src]
pub struct VarDecl {
pub id: NodeId,
pub name: Spanned<Name>,
pub span: Span,
pub ty: NodeId,
pub init: Option<NodeId>,
pub kind: VarKind,
}
Expand description
A variable or net declaration.
Fields
id: NodeId
name: Spanned<Name>
span: Span
ty: NodeId
Data type
init: Option<NodeId>
Initial value
kind: VarKind
Variable or net-specific data
Trait Implementations
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. Read more