pub enum Object {
Null,
Bool(bool),
Int(i32),
Float(f64),
Complex(Complex64),
Info(Info),
List(Rc<RefCell<List>>),
String(Rc<CharString>),
Map(Rc<RefCell<Map>>),
Function(Rc<Function>),
Interface(Rc<dyn Interface>),
}Variants§
Null
Bool(bool)
Int(i32)
Float(f64)
Complex(Complex64)
Info(Info)
List(Rc<RefCell<List>>)
String(Rc<CharString>)
Map(Rc<RefCell<Map>>)
Function(Rc<Function>)
Interface(Rc<dyn Interface>)
Implementations§
Source§impl Object
impl Object
pub fn string(&self, env: &mut Env<'_>) -> Result<String, Box<Exception>>
pub fn repr(&self, env: &mut Env<'_>) -> Result<String, Box<Exception>>
pub fn to_repr(&self) -> String
pub fn take(&mut self) -> Object
pub fn table(t: Rc<Table>) -> Object
pub fn empty() -> Object
pub fn unimplemented() -> Object
pub fn is_empty(&self) -> bool
pub fn is_unimplemented(&self) -> bool
Trait Implementations§
impl Eq for Object
Auto Trait Implementations§
impl Freeze for Object
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl !UnwindSafe 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