Trait Function

Source
pub trait Function: Sync + Send {
    // Required method
    fn call(&self, args: &HashMap<String, Value>) -> Result<Value>;
}
Expand description

The global function type definition

Required Methods§

Source

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

The global function type definition

Implementors§

Source§

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