Function pax_runtime::api::register_function

source ยท
pub fn register_function(
    scope: String,
    name: String,
    func: Arc<dyn Fn(Vec<PaxValue>) -> Result<PaxValue, String> + Send + Sync>,
)