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

pub enum Ty {
    Named(TyNameTypeMarkRef),
    Null,
    Int(IntTy),
    UniversalInt,
    UnboundedInt,
    Enum(EnumTy),
    Physical(PhysicalTy),
    Access(Box<Ty>),
    Array(ArrayTy),
    File(Box<Ty>),
    Record(RecordTy),
    Subprog(SubprogTy),
}

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.

Tuple Fields of Named

0: TyName1: TypeMarkRef
Null

The null type.

Int(IntTy)

An integer type.

Tuple Fields of Int

0: IntTy
UniversalInt

A universal integer type.

UnboundedInt

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.

Enum(EnumTy)

An enumeration type.

Tuple Fields of Enum

0: EnumTy
Physical(PhysicalTy)

A physical type.

Tuple Fields of Physical

0: PhysicalTy
Access(Box<Ty>)

An access type.

Tuple Fields of Access

0: Box<Ty>
Array(ArrayTy)

An array type.

Tuple Fields of Array

0: ArrayTy
File(Box<Ty>)

A file type.

Tuple Fields of File

0: Box<Ty>
Record(RecordTy)

A record type.

Tuple Fields of Record

0: RecordTy
Subprog(SubprogTy)

A subprogram type.

Tuple Fields of Subprog

0: SubprogTy

Implementations

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.

Check if this type is an integer.

Check if this type is a real.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

Creates the node with the given ID. Read more

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

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.