Enum moore_vhdl::ty::Ty
[−]
[src]
pub enum Ty { Named(Span, TypeMarkRef), Null, Int(IntTy), UnboundedInt, Enum(EnumTy), Access(Box<Ty>), Array(ArrayTy), File(Box<Ty>), Record(RecordTy), }
Variants
Named(Span, TypeMarkRef)
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.
Null
The null type.
Int(IntTy)
An 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.
Access(Box<Ty>)
An access type.
Array(ArrayTy)
An array type.
File(Box<Ty>)
A file type.
Record(RecordTy)
A record type.
Methods
impl Ty
[src]
fn kind_desc(&self) -> &'static str
[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]
impl Clone for Ty
[src]
fn clone(&self) -> Ty
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Ty
[src]
fn eq(&self, __arg_0: &Ty) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Ty) -> bool
[src]
This method tests for !=
.