Enum moore_vhdl::hir::TypeData
source · [−]pub enum TypeData {
Enum(Vec<EnumLit>),
Range(Dir, ExprRef, ExprRef),
Physical(Dir, ExprRef, ExprRef, UnitTable, usize),
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.
Range(Dir, ExprRef, ExprRef)
An integer or float type.
Physical(Dir, ExprRef, ExprRef, UnitTable, usize)
A physical type. The fields are as follows:
- Direction
- Left bound
- Right bound
- Table of units
- Index of the primary unit in the table
Access(SubtypeIndRef)
An access type.
Array(Vec<ArrayTypeIndexRef>, SubtypeIndRef)
An array type.
File(Spanned<TypeMarkRef>)
A file type.
Record(Vec<(Spanned<Name>, SubtypeIndRef)>)
A record type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeData
impl Send for TypeData
impl Sync for TypeData
impl Unpin for TypeData
impl UnwindSafe for TypeData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more