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

Trait Implementations

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Value
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Value

impl !Sync for Value