Struct napi::bindgen_prelude::Reference
source · pub struct Reference<T: 'static> { /* private fields */ }
Expand description
Experimental feature
Create a reference
from Class
instance.
Unref the Reference
when the Reference
is dropped.
Implementations§
Trait Implementations§
source§impl<T: 'static> ToNapiValue for Reference<T>
impl<T: 'static> ToNapiValue for Reference<T>
source§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 Read more