Trait napi::bindgen_prelude::FromNapiValue
source · [−]pub trait FromNapiValue: Sized {
unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value
) -> Result<Self>;
fn from_unknown(value: JsUnknown) -> Result<Self> { ... }
}
Required Methods
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety
this function called to convert napi values to native rust values