pub trait FromNapiRef {
    // Required method
    unsafe fn from_napi_ref(
        env: napi_env,
        napi_val: napi_value
    ) -> Result<&'static Self>;
}

Required Methods§

source

unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value ) -> Result<&'static Self>

Safety

this function called to convert napi values to native rust values

Implementors§