Function make_external_func

Source
pub fn make_external_func<F: Fn(&mut ExecutionState<'_>, &[Value]) -> Option<Value> + Clone + Send + Sync>(
    f: F,
) -> impl ExternalFunction
Expand description

Automatically generate an ExternalFunction implementation from a function.