Trait napi::bindgen_prelude::ToNapiValue
source ·
[−]pub trait ToNapiValue {
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>;
}
Required methods
unsafe 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