Enum bitsy_lang::sim::Value
source · pub enum Value {
X,
Word(Width, u64),
Vec(Vec<Value>),
Ctor(String, Vec<Value>),
Enum(Type, String),
Struct(Type, Vec<(String, Value)>),
}
Expand description
A value used in the simulator (see crate::sim::Sim
).
Variants§
X
An undefined value.
Word(Width, u64)
An element of Word[n]
.
Vec(Vec<Value>)
An element of Vec[T, n]
.
Ctor(String, Vec<Value>)
An element of Valid[T]
.
Enum(Type, String)
An element of a user-defined enum
.
Struct(Type, Vec<(String, Value)>)
Implementations§
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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