Skip to main content

NativeFnFunc

Type Alias NativeFnFunc 

Source
pub type NativeFnFunc = Arc<dyn Fn(&[Value]) -> ValueResult<Value> + Send + Sync>;
Expand description

The callable stored inside a NativeFn. Supports both bare function pointers and closures that capture state.

Aliased Typeยง

pub struct NativeFnFunc { /* private fields */ }