pub enum Value {
Show 13 variants
Num(BigInt),
Ratio(Ratio),
Str(String),
Symbol(String),
List(Vec<Value>),
BuiltinFunc(fn(&mut Env, &[AST]) -> Result<Value, String>),
Thunk(AST, Box<Env>),
Lambda(Vec<String>, AST, Box<Env>),
Bool(bool),
Complex(Complex),
Dict(BTreeMap<String, Value>),
Stream(Rc<RefCell<StreamCore>>),
Nil,
}Variants§
Num(BigInt)
Ratio(Ratio)
Str(String)
Symbol(String)
List(Vec<Value>)
BuiltinFunc(fn(&mut Env, &[AST]) -> Result<Value, String>)
Thunk(AST, Box<Env>)
Lambda(Vec<String>, AST, Box<Env>)
Bool(bool)
Complex(Complex)
Dict(BTreeMap<String, Value>)
Stream(Rc<RefCell<StreamCore>>)
Nil
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Value
impl !UnwindSafe for Value
impl Freeze for Value
impl Unpin for Value
impl UnsafeUnpin 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