Trait napi_h::bindgen_prelude::ToNapiValue
source · pub trait ToNapiValue {
// Required method
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>;
}
Required Methods§
sourceunsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
§Safety
this function called to convert rust values to napi values
Object Safety§
This trait is not object safe.