Macro liquid_core::scalar[][src]

macro_rules! scalar {
    ($value:literal) => { ... };
    ($other:ident) => { ... };
    ($other:expr) => { ... };
}

A value::Scalar literal.

Example

liquid_core::scalar!(5)
    .to_integer().unwrap();
liquid_core::scalar!("foo")
    .to_kstr();