Trait Function
Other items intera
pub trait Function: Sync + Send { fn call(&self, args: &HashMap<String, Value>) -> Result<Value>; fn is_safe(&self) -> bool { ... } }
The global function type definition
fn call(&self, args: &HashMap<String, Value>) -> Result<Value>
fn is_safe(&self) -> bool
Whether the current function’s output should be treated as safe, defaults to false
false
impl<F> Function for F where F: Fn(&HashMap<String, Value>) -> Result<Value> + Sync + Send,