[][src]Trait tera::Function

pub trait Function: Sync + Send {
    fn call(&self, args: &HashMap<String, Value>) -> Result<Value>;

    fn is_safe(&self) -> bool { ... }
}

The global function type definition

Required methods

fn call(&self, args: &HashMap<String, Value>) -> Result<Value>

The global function type definition

Loading content...

Provided methods

fn is_safe(&self) -> bool

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

Loading content...

Implementors

impl<F> Function for F where
    F: Fn(&HashMap<String, Value>) -> Result<Value> + Sync + Send
[src]

Loading content...