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

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.

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

impl From<ArrayConstraint> for Constraint
[src]

impl From<ArrayConstraint> for ElementConstraint
[src]

impl Debug for ArrayConstraint
[src]

impl HasSpan for ArrayConstraint
[src]

fn human_span(&self) -> Span
[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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.