Enum liquid::Value [] [src]

pub enum Value {
    Num(f32),
    Str(String),
    Object(HashMap<String, Value>),
    Array(Vec<Value>),
    Bool(bool),
}

An enum to represent different value types

Variants

Methods

impl<'a> Value
[src]

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

Parses a token that can possibly represent a Value to said Value. Returns an Err if the token can not be interpreted as a Value.

Trait Implementations

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter.

impl PartialEq<Value> for Value
[src]

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

This method tests for !=.

impl Eq for Value
[src]

impl PartialOrd<Value> for Value
[src]

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

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

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

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

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

impl ToString for Value
[src]

Converts the given value to a String. Read more

impl Renderable for Value
[src]

Renders the Renderable instance given a Liquid context. The Result that is returned signals if there was an error rendering, the Option that is wrapped by the Result will be None if the render has run successfully but there is no content to render. Read more