Struct liquid_value::Scalar[][src]

pub struct Scalar(_);

A Liquid scalar value

Methods

impl Scalar
[src]

Convert a value into a Scalar.

Interpret as a string.

Convert to a string.

Interpret as an integer, if possible

Interpret as an float, if possible

Interpret as an bool, if possible

Interpret as an bool, if possible

Evaluate using Liquid "truthiness"

Whether a default constructed value.

Report the data type (generally for error reporting).

Trait Implementations

impl Clone for Scalar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Scalar
[src]

Formats the value using the given formatter. Read more

impl From<i32> for Scalar
[src]

Performs the conversion.

impl From<f64> for Scalar
[src]

Performs the conversion.

impl From<bool> for Scalar
[src]

Performs the conversion.

impl From<Date> for Scalar
[src]

Performs the conversion.

impl From<String> for Scalar
[src]

Performs the conversion.

impl<'a> From<&'a String> for Scalar
[src]

Performs the conversion.

impl From<&'static str> for Scalar
[src]

Performs the conversion.

impl PartialEq<Scalar> for Scalar
[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 Scalar
[src]

impl PartialOrd<Scalar> for Scalar
[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 Display for Scalar
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Scalar

impl Sync for Scalar