pub enum Object {
Pointer(Pointer, u32),
List(Rc<[Object]>),
Tuple(Rc<[Object]>),
Group(u32, Rc<[Object]>),
Str(Rc<str>),
Int(i32),
Float(f32),
Bool(bool),
}Variants§
Pointer(Pointer, u32)
List(Rc<[Object]>)
Tuple(Rc<[Object]>)
Group(u32, Rc<[Object]>)
Str(Rc<str>)
Int(i32)
Float(f32)
Bool(bool)
Implementations§
Source§impl Object
impl Object
pub fn list(&self) -> Result<Rc<[Object]>, Error>
pub fn tuple(&self) -> Result<Rc<[Object]>, Error>
pub fn group(&self) -> Result<(u32, Rc<[Object]>), Error>
pub fn pointer(&self) -> Result<(Pointer, u32), Error>
pub fn bool(&self) -> Result<bool, Error>
pub fn int(&self) -> Result<i32, Error>
pub fn float(&self) -> Result<f32, Error>
pub fn str(&self) -> Result<&str, Error>
pub fn binary(self, op: BinOp, rhs: Object) -> Result<Object, Error>
pub fn unary(self, op: UnaOp) -> Result<Object, Error>
Trait Implementations§
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