pub enum Value {
Closure {
param: VarName,
body: Expr,
env: Env,
},
}Expand description
A runtime value.
Spike 1 has a single variant (closures); spike 2 will extend this enum with literals, references, and any other values the GC must trace.
Variants§
Closure
A function closed over its lexical environment.
Implementations§
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin 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