Trait tera::Function[][src]

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>[src]

The global function type definition

Loading content...

Provided methods

fn is_safe(&self) -> bool[src]

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...