Enum over::value::Value [] [src]

pub enum Value {
    Null,
    Bool(bool),
    Int(BigInt),
    Frac(BigFraction),
    Char(char),
    Str(String),
    Arr(Arr),
    Tup(Tup),
    Obj(Obj),
}

Enum of possible values and their inner types.

Variants

A null value.

A boolean value.

A signed integer value.

A fractional value.

A character value.

A string value.

An array value.

A tuple value.

An object value.

Methods

impl Value
[src]

[src]

Returns true iff this Value is null.

[src]

Returns the Type of this Value.

[src]

Returns the bool contained in this Value. Returns an error if this Value is not Bool.

[src]

Returns the BigInt contained in this Value. Returns an error if this Value is not Int.

[src]

Returns the BigFraction contained in this Value. Returns an error if this Value is not Frac.

[src]

Returns the char contained in this Value. Returns an error if this Value is not Char.

[src]

Returns the String contained in this Value. Returns an error if this Value is not Str.

[src]

Returns the Arr contained in this Value. Returns an error if this Value is not Arr.

[src]

Returns the Tup contained in this Value. Returns an error if this Value is not Tup.

[src]

Returns the Obj contained in this Value. Returns an error if this Value is not Obj.

Trait Implementations

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Value
[src]

[src]

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

[src]

This method tests for !=.

impl PartialEq<bool> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<BigInt> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<BigFraction> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<char> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<String> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<Arr> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<Tup> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<Obj> for Value
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.

impl From<bool> for Value
[src]

[src]

Performs the conversion.

impl From<usize> for Value
[src]

[src]

Performs the conversion.

impl From<u8> for Value
[src]

[src]

Performs the conversion.

impl From<u16> for Value
[src]

[src]

Performs the conversion.

impl From<u32> for Value
[src]

[src]

Performs the conversion.

impl From<u64> for Value
[src]

[src]

Performs the conversion.

impl From<i8> for Value
[src]

[src]

Performs the conversion.

impl From<i16> for Value
[src]

[src]

Performs the conversion.

impl From<i32> for Value
[src]

[src]

Performs the conversion.

impl From<i64> for Value
[src]

[src]

Performs the conversion.

impl From<BigInt> for Value
[src]

[src]

Performs the conversion.

impl From<f32> for Value
[src]

[src]

Performs the conversion.

impl From<f64> for Value
[src]

[src]

Performs the conversion.

impl From<BigFraction> for Value
[src]

[src]

Performs the conversion.

impl From<char> for Value
[src]

[src]

Performs the conversion.

impl From<String> for Value
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<Arr> for Value
[src]

[src]

Performs the conversion.

impl From<Tup> for Value
[src]

[src]

Performs the conversion.

impl From<Obj> for Value
[src]

[src]

Performs the conversion.