Enum ncl::value::Value [] [src]

pub enum Value {
    Str(String),
    Num(i64),
    Bool(bool),
    Object(Box<Object>),
}

Variants

Str(String)Num(i64)Bool(bool)Object(Box<Object>)

Trait Implementations

impl PartialEq for Value
[src]

fn eq(&self, __arg_0: &Value) -> bool

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

fn ne(&self, __arg_0: &Value) -> bool

This method tests for !=.

impl Debug for Value
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<String> for Value
[src]

fn from(string: String) -> Self

Performs the conversion.

impl<'a> From<&'a str> for Value
[src]

fn from(string: &'a str) -> Self

Performs the conversion.

impl From<i64> for Value
[src]

fn from(num: i64) -> Self

Performs the conversion.

impl From<bool> for Value
[src]

fn from(b: bool) -> Self

Performs the conversion.

impl From<Object> for Value
[src]

fn from(obj: Object) -> Self

Performs the conversion.