pub fn function(
name: &str,
handler: impl Fn(&[Value]) -> Result<Value, NativeError> + 'static,
) -> FunctionBuilder<'static>Expand description
A PHP function name (namespaced names allowed) that takes any arguments and runs handler.
pub fn function(
name: &str,
handler: impl Fn(&[Value]) -> Result<Value, NativeError> + 'static,
) -> FunctionBuilder<'static>A PHP function name (namespaced names allowed) that takes any arguments and runs handler.