pub struct NapiRef(_, _);
Implementations
This API creates a new reference with the specified reference count to the Object passed in.
This API increments the reference count for the reference passed in and returns the resulting reference count.
This API decrements the reference count for the reference passed in and returns the resulting reference count.
If still valid, this API returns the napi_value representing the JavaScript Object associated with the napi_ref. Otherwise, result will be NULL.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NapiRef
impl UnwindSafe for NapiRef
Blanket Implementations
Mutably borrows from an owned value. Read more