neon::sys::bindings

Function create_function

Source
pub unsafe fn create_function(
    env: Env,
    utf8name: *const c_char,
    length: usize,
    cb: Callback,
    data: *mut c_void,
    result: *mut Value,
) -> Result<(), Status>
Available on crate features sys and napi-1 only.
Expand description