Enum js::front::stdlib::value::ValueData[src]

pub enum ValueData {
    VNull,
    VUndefined,
    VBoolean(bool),
    VString(String),
    VNumber(f64),
    VInteger(i32),
    VObject(RefCell<ObjectData>),
    VFunction(RefCell<Function>),
}

A Javascript value

Variants

VNull

null - A null value, for when a value doesn't exist

VUndefined

undefined - An undefined value, for when a field or index doesn't exist

VBoolean

boolean - A true / false value, for if a certain criteria is met

VString

String - A UTF-8 string, such as "Hello, world"

VNumber

Number - A 64-bit floating point number, such as 3.1415

VInteger

Number - A 32-bit integer, such as 42

VObject

Object - An object, such as Math, represented by a binary tree of string keys to Javascript values

VFunction

Function - A runnable block of code, such as Math.sqrt, which can take some variables and return a useful value or act upon an object

Trait Implementations

Derived Implementations

impl Clone for ValueData

fn clone(&self) -> ValueData

fn clone_from(&mut self, source: &Self)