Function

Trait Function 

Source
pub trait Function: Send + Sync {
    // Required method
    fn call(&self, this: Value, arguments: Arguments) -> Result<Value>;
}

Required Methods§

Source

fn call(&self, this: Value, arguments: Arguments) -> Result<Value>

Implementors§

Source§

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