Enum smpl::interpreter::Value [−][src]
pub enum Value { Int(i32), Float(f32), Bool(bool), String(String), Array(Vec<Rc<RefCell<Value>>>), Function(FnHandle), Struct(Struct), Unit, }
Variants
Int(i32)
Float(f32)
Bool(bool)
String(String)
Array(Vec<Rc<RefCell<Value>>>)
Function(FnHandle)
Struct(Struct)
Unit
Trait Implementations
impl Debug for Value
[src]
impl Debug for Value
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl Display for Value
[src]
impl Display for Value