Skip to main content

native_function

Function native_function 

Source
pub fn native_function(
    name: &str,
    arity: usize,
    callback: impl Fn(Vec<Value>) -> Result<Value, String> + 'static,
) -> Value
Expand description

Builds a fixed-arity native callable for embedding-owned namespaces.