Trait rocket_dyn_templates::tera::Function[][src]

pub trait Function: Sync + Send {
    fn call(
        &self,
        args: &HashMap<String, Value, RandomState>
    ) -> Result<Value, Error>; fn is_safe(&self) -> bool { ... } }
Expand description

The global function type definition

Required methods

The global function type definition

Provided methods

Whether the current function’s output should be treated as safe, defaults to false

Implementors