Enum moss::object::Object
[−]
[src]
pub enum Object { Null, Bool(bool), Int(i32), Float(f64), Complex(Complex64), List(Rc<RefCell<List>>), String(Rc<U32String>), Map(Rc<RefCell<Map>>), Function(Rc<Function>), Range(Rc<Range>), Table(Rc<Table>), Tuple(Rc<Vec<Object>>), Empty, Interface(Rc<Interface>), }
Variants
Null
Bool(bool)
Int(i32)
Float(f64)
Complex(Complex64)
List(Rc<RefCell<List>>)
String(Rc<U32String>)
Map(Rc<RefCell<Map>>)
Function(Rc<Function>)
Range(Rc<Range>)
Table(Rc<Table>)
Tuple(Rc<Vec<Object>>)
Empty
Interface(Rc<Interface>)
Methods
impl Object
[src]
pub fn string(&self, env: &mut Env) -> Result<String, Box<Exception>>
[src]
pub fn repr(&self, env: &mut Env) -> Result<String, Box<Exception>>
[src]
pub fn to_repr(&self) -> String
[src]
Trait Implementations
impl ToString for Object
[src]
impl Clone for Object
[src]
fn clone(&self) -> Object
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Object
[src]
fn eq(&self, b: &Object) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.