Enum bitsy_lang::ast::Type
source · pub enum Type {
Word(Width),
Vec(Box<Type>, Length),
Valid(Box<Type>),
TypeRef(Ident, Vec<TypeParam>),
}
Expand description
A type classifier for values.
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]
.
TypeRef(Ident, Vec<TypeParam>)
An unresolved reference to a user-defined type.
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