pub enum VmValue {
Show 17 variants
Int(String),
Float(String),
String(StringTree),
Bytes(BytesTree),
Path(Rc<PathBuf>),
Bool(bool),
Unit,
List(ListTree<Rc<VmValue>>),
Tuple(Vec<VmValue>),
Record(BTreeMap<Name, VmValue>),
Variant {
tag: Name,
value: Option<Box<VmValue>>,
},
EffectOp(Path),
PrimitiveOp(Rc<VmPrimitive>),
Resume(Rc<VmResume>),
Closure(Rc<VmClosure>),
Thunk(Rc<VmThunk>),
EffectId(u64),
}Variants§
Int(String)
Float(String)
String(StringTree)
Bytes(BytesTree)
Path(Rc<PathBuf>)
Bool(bool)
Unit
List(ListTree<Rc<VmValue>>)
Tuple(Vec<VmValue>)
Record(BTreeMap<Name, VmValue>)
Variant
EffectOp(Path)
PrimitiveOp(Rc<VmPrimitive>)
Resume(Rc<VmResume>)
Closure(Rc<VmClosure>)
Thunk(Rc<VmThunk>)
EffectId(u64)
Trait Implementations§
impl StructuralPartialEq for VmValue
Auto Trait Implementations§
impl Freeze for VmValue
impl RefUnwindSafe for VmValue
impl !Send for VmValue
impl !Sync for VmValue
impl Unpin for VmValue
impl UnsafeUnpin for VmValue
impl UnwindSafe for VmValue
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