Trait napi_h::bindgen_prelude::FromNapiRef
source · pub trait FromNapiRef {
// Required method
unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static Self>;
}
Required Methods§
sourceunsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static Self>
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
Object Safety§
This trait is not object safe.