Enum liquid::Value [] [src]

pub enum Value {
    Scalar(Scalar),
    Array(Array),
    Object(Object),
    Nil,
}

An enum to represent different value types

Variants

Methods

impl Value
[src]

[src]

[src]

[src]

[src]

[src]

Extracts the scalar value if it is a scalar.

[src]

Tests whether this value is a scalar

[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]

Tests whether this value is an object

[src]

Tests whether this value is nil

[src]

Evaluate using Liquid "truthiness"

[src]

[src]

[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. Read more

impl Default for Value
[src]

[src]

Returns the "default value" for a type. Read more

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

Auto Trait Implementations

impl Send for Value

impl Sync for Value