pub enum Value {
Show 17 variants
Number(f64),
Int32(i32),
Integer(BigInt),
Rational(BigRational),
Atom(Rc<str>),
QuotedAtom(Rc<str>),
String(Rc<str>),
Boolean(bool),
Null,
Pair(Rc<Value>, Rc<Value>),
Array(Rc<RefCell<Vec<Value>>>),
Variable(Rc<RefCell<Value>>),
Nil,
Builtin(fn(&mut Interpreter) -> Result<(), RuntimeError>),
Record {
type_name: Rc<str>,
fields: Rc<RefCell<Vec<Value>>>,
},
RecordType {
type_name: Rc<str>,
field_names: Rc<Vec<Rc<str>>>,
},
I16Buffer(Rc<RefCell<Vec<i16>>>),
}Variants§
Number(f64)
Int32(i32)
Integer(BigInt)
Rational(BigRational)
Atom(Rc<str>)
QuotedAtom(Rc<str>)
String(Rc<str>)
Boolean(bool)
Null
Pair(Rc<Value>, Rc<Value>)
Array(Rc<RefCell<Vec<Value>>>)
Variable(Rc<RefCell<Value>>)
Nil
Builtin(fn(&mut Interpreter) -> Result<(), RuntimeError>)
Record
RecordType
I16Buffer(Rc<RefCell<Vec<i16>>>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
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