Skip to main content

NativeFn

Type Alias NativeFn 

Source
pub type NativeFn = Arc<dyn Fn(&mut Cx, &[Value]) -> Result<Value> + Send + Sync>;
Expand description

A native (Rust-backed) function body: a closure invoked with the runtime context and the evaluated argument values, used when a Func has no CAS body.

Aliased Typeยง

pub struct NativeFn { /* private fields */ }