Struct moore_vhdl::hir::ArrayConstraint [] [src]

pub struct ArrayConstraint {
    pub span: Span,
    pub index: Vec<Spanned<DiscreteRange>>,
    pub elem: Option<Box<Spanned<ElementConstraint>>>,
}

An array constraint.

See IEEE 1076-2008 section 5.3.2.

Be careful when using this code, it's not being tested!
array_constraint :=
    index_constraint [array.element_constraint] |
    "(" "open" ")" [array.element_constraint]

Fields

The span this constraint covers.

The index constraint. An empty vector corresponds to the open constraint.

The optional element constraint.

Trait Implementations

impl Debug for ArrayConstraint
[src]

[src]

Formats the value using the given formatter.

impl HasSpan for ArrayConstraint
[src]

[src]

Obtain the full span of the input file that this node covers.

[src]

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