Trait twig::value::Object [] [src]

pub trait Object {
    fn property_error(&self, name: &str) -> RuntimeError { ... }
    fn method_error(&self, name: &str) -> RuntimeError { ... }
    fn get(&self, name: &str) -> RuntimeResult<Value> { ... }
    fn set(&mut self, name: &str, _value: Value) -> RuntimeResult<()> { ... }
    fn call(&mut self, name: &str, _values: &[Value]) -> RuntimeResult<Value> { ... }
}

Twig object abstraction.

Provided Methods

fn property_error(&self, name: &str) -> RuntimeError

fn method_error(&self, name: &str) -> RuntimeError

fn get(&self, name: &str) -> RuntimeResult<Value>

fn set(&mut self, name: &str, _value: Value) -> RuntimeResult<()>

fn call(&mut self, name: &str, _values: &[Value]) -> RuntimeResult<Value>

Implementors