Enum moore_vhdl::hir::TypeData[][src]

pub enum TypeData {
    Enum(Vec<EnumLit>),
    Range(DirExprRefExprRef),
    Physical(DirExprRefExprRefUnitTableusize),
    Access(SubtypeIndRef),
    Array(Vec<ArrayTypeIndexRef>, SubtypeIndRef),
    File(Spanned<TypeMarkRef>),
    Record(Vec<(Spanned<Name>, SubtypeIndRef)>),
}
Expand description

The meat of a type declaration.

Variants

Enum(Vec<EnumLit>)

An enumeration type.

Tuple Fields of Enum

0: Vec<EnumLit>
Range(DirExprRefExprRef)

An integer or float type.

Tuple Fields of Range

0: Dir1: ExprRef2: ExprRef
Physical(DirExprRefExprRefUnitTableusize)

A physical type. The fields are as follows:

  1. Direction
  2. Left bound
  3. Right bound
  4. Table of units
  5. Index of the primary unit in the table

Tuple Fields of Physical

0: Dir1: ExprRef2: ExprRef3: UnitTable4: usize

An access type.

Tuple Fields of Access

0: SubtypeIndRef

An array type.

Tuple Fields of Array

0: Vec<ArrayTypeIndexRef>1: SubtypeIndRef

A file type.

Tuple Fields of File

0: Spanned<TypeMarkRef>

A record type.

Tuple Fields of Record

0: Vec<(Spanned<Name>, SubtypeIndRef)>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.