[][src]Enum moore_vhdl::hir::Choice

pub enum Choice {
    Expr(ExprRef),
    DiscreteRange(DiscreteRange),
    Element(Name),
    Others,
}

A choice in an aggregate.

See IEEE 1076-2008 section 9.3.3.1.

Variants

Expr(ExprRef)

An expression.

DiscreteRange(DiscreteRange)

A discrete range.

Element(Name)

A record element.

Others

The keyword others.

Implementations

impl Choice[src]

pub fn is_others(&self) -> bool[src]

Check if the choice is others.

pub fn is_element(&self) -> bool[src]

Check if the choice is a record element.

Trait Implementations

impl Debug for Choice[src]

Auto Trait Implementations

impl RefUnwindSafe for Choice

impl Send for Choice

impl Sync for Choice

impl Unpin for Choice

impl UnwindSafe for Choice

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.