Enum moore_vhdl::ty::Ty [] [src]

pub enum Ty {
    Named(SpanTypeMarkRef),
    Null,
    Int(IntTy),
    UnboundedInt,
    Enum(EnumTy),
    Access(Box<Ty>),
    Array(ArrayTy),
    File(Box<Ty>),
    Record(RecordTy),
}

Variants

A named type. In a signal declaration for example, the source code mentions the type of the signal. This type name is resolved to its actual declaration somewhere else in the source code. Thus this type acts as a sort of "pointer" to a type, together with information on how the source code referred to that type. This helps make error messages easier to read for the user.

The null type.

An integer type.

An unbounded integer type. This is the type integers have that are evaluated at compile time, e.g. as part of a range expression. Cannot be mapped to LLHD.

An enumeration type.

An access type.

An array type.

A file type.

A record type.

Methods

impl Ty
[src]

[src]

Provide a textual description of the kind of type. For example, if called on an integer type, the result is "integer type", without any information on the exact nature of the integer.

Trait Implementations

impl Debug for Ty
[src]

[src]

Formats the value using the given formatter.

impl Clone for Ty
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Ty
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Ty
[src]

impl From<IntTy> for Ty
[src]

[src]

Performs the conversion.

impl From<EnumTy> for Ty
[src]

[src]

Performs the conversion.

impl From<ArrayTy> for Ty
[src]

[src]

Performs the conversion.

impl From<RecordTy> for Ty
[src]

[src]

Performs the conversion.

impl Display for Ty
[src]

[src]

Formats the value using the given formatter. Read more