Skip to main content

function

Function function 

Source
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.