Type Alias NativeFunction

Source
pub type NativeFunction = fn(&JsValue, &[JsValue], &mut Context) -> JsResult<JsValue>;
Expand description

Type representing a native built-in function a.k.a. function pointer.

Native functions need to have this signature in order to be callable from Javascript.