pub enum Object {
Integer(i64),
Boolean(bool),
String(String),
Array(Vec<Rc<Object>>),
Hash(HashMap<Rc<Object>, Rc<Object>>),
Null,
ReturnValue(Rc<Object>),
Function(Vec<IDENTIFIER>, BlockStatement, Env),
Builtin(BuiltinFunc),
Error(String),
CompiledFunction(Rc<CompiledFunction>),
ClosureObj(Closure),
}Variants§
Integer(i64)
Boolean(bool)
String(String)
Array(Vec<Rc<Object>>)
Hash(HashMap<Rc<Object>, Rc<Object>>)
Null
ReturnValue(Rc<Object>)
Function(Vec<IDENTIFIER>, BlockStatement, Env)
Builtin(BuiltinFunc)
Error(String)
CompiledFunction(Rc<CompiledFunction>)
ClosureObj(Closure)
Implementations§
Trait Implementations§
impl Eq for Object
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl !UnwindSafe for Object
impl Freeze for Object
impl Unpin for Object
impl UnsafeUnpin for Object
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