Struct moore_vhdl::hir::ArrayConstraint [−][src]
pub struct ArrayConstraint {
pub span: Span,
pub index: Vec<Spanned<DiscreteRange>>,
pub elem: Option<Box<Spanned<ElementConstraint>>>,
}
Expand description
An array constraint.
See IEEE 1076-2008 section 5.3.2.
array_constraint :=
index_constraint [array.element_constraint] |
"(" "open" ")" [array.element_constraint]
Fields
span: Span
The span this constraint covers.
index: Vec<Spanned<DiscreteRange>>
The index constraint. An empty vector corresponds to the open
constraint.
elem: Option<Box<Spanned<ElementConstraint>>>
The optional element constraint.
Trait Implementations
Performs the conversion.
Performs the conversion.
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