Enum liquid::Value [] [src]

pub enum Value {
    Num(f32),
    Bool(bool),
    Str(String),
    Array(Array),
    Object(Object),
    Nil,
}

An enum to represent different value types

Variants

Methods

impl Value
[src]

[src]

Shorthand function to create Value::Str from a string slice.

[src]

Extracts the float value if it is a float.

[src]

Tests whether this value is a float

[src]

Extracts the boolean value if it is a boolean.

[src]

Tests whether this value is a boolean

[src]

Extracts the str value if it is a str.

[src]

Tests whether this value is a str

[src]

Extracts the array value if it is an array.

[src]

Extracts the array value if it is an array.

[src]

Tests whether this value is an array

[src]

Extracts the object value if it is a object.

[src]

Extracts the object value if it is a object.

[src]

Extracts the object value if it is a object.

[src]

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<Value> 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 Eq for Value
[src]

impl PartialOrd<Value> for Value
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Value
[src]

[src]

Formats the value using the given formatter. Read more