Enum bitsy_lang::Type
source · pub enum Type {
Word(Width),
Vec(Box<Type>, Length),
Valid(Box<Type>),
Enum(Arc<EnumTypeDef>),
Struct(Arc<StructTypeDef>),
Alt(Arc<AltTypeDef>, Vec<TypeParam>),
}
Expand description
A type classifier for crate::sim::Value
s.
Variants§
Word(Width)
An n-bit two’s complement integer. Nominally unsigned. Written Word[n]
.
Vec(Box<Type>, Length)
A n-element vector. Written Vec[T, n]
.
Valid(Box<Type>)
An optional value. Written Valid[T]
.
Enum(Arc<EnumTypeDef>)
A user-defined enum
.
Struct(Arc<StructTypeDef>)
A user-defined struct
.
Alt(Arc<AltTypeDef>, Vec<TypeParam>)
A user-defined alt
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more