Trait FromNapiMutRef

Source
pub trait FromNapiMutRef {
    // Required method
    unsafe fn from_napi_mut_ref(
        env: napi_env,
        napi_val: napi_value,
    ) -> Result<&'static mut Self>;
}

Required Methods§

Source

unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>

§Safety

this function called to convert napi values to native rust values

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§