Enum twig::value::Value
[−]
[src]
pub enum Value { Null, Int(i64), Float(f64), Str(String), Array(Vec<Value>), Hash(HashMap<HashKey, Value>), Obj(Rc<RefCell<Object>>), Func(Rc<for<'r> Fn(&'r [Value]) -> Option<Value>>), }
Represents Twig runtime value.
Variants
Null | |
Int | |
Float | |
Str | |
Array | |
Hash | |
Obj | |
Func |
Methods
impl Value
fn int(self) -> RuntimeResult<i64>
If possible, returns this value represented as integer.