pub enum Type {
Word(Width),
Vec(Box<Type>, Length),
Valid(Box<Type>),
Enum(Arc<EnumTypeDef>),
Struct(Arc<StructTypeDef>),
}
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
.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
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