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

Safety

this function called to convert napi values to native rust values

Provided Methods

Implementations on Foreign Types

Implementors