Struct napi_h::bindgen_prelude::ClassInstance
source · pub struct ClassInstance<T: 'static> {
pub value: napi_value,
/* private fields */
}
Fields§
§value: napi_value
Implementations§
Trait Implementations§
source§impl<T: 'static> AsMut<T> for ClassInstance<T>
impl<T: 'static> AsMut<T> for ClassInstance<T>
source§impl<T: 'static> AsRef<T> for ClassInstance<T>
impl<T: 'static> AsRef<T> for ClassInstance<T>
source§impl<T: 'static> Deref for ClassInstance<T>
impl<T: 'static> Deref for ClassInstance<T>
source§impl<T: 'static> DerefMut for ClassInstance<T>
impl<T: 'static> DerefMut for ClassInstance<T>
source§impl<T: 'static> FromNapiValue for ClassInstance<T>
impl<T: 'static> FromNapiValue for ClassInstance<T>
source§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 Read more
fn from_unknown(value: JsUnknown) -> Result<Self>
source§impl<T: 'static> NapiRaw for ClassInstance<T>
impl<T: 'static> NapiRaw for ClassInstance<T>
unsafe fn raw(&self) -> napi_value
source§impl<T: 'static> TypeName for ClassInstance<T>where
&'static T: TypeName,
impl<T: 'static> TypeName for ClassInstance<T>where
&'static T: TypeName,
source§impl<T: 'static> ValidateNapiValue for ClassInstance<T>where
&'static T: ValidateNapiValue,
impl<T: 'static> ValidateNapiValue for ClassInstance<T>where
&'static T: ValidateNapiValue,
source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl<T> Freeze for ClassInstance<T>
impl<T> RefUnwindSafe for ClassInstance<T>where
T: RefUnwindSafe,
impl<T> !Send for ClassInstance<T>
impl<T> !Sync for ClassInstance<T>
impl<T> Unpin for ClassInstance<T>
impl<T> !UnwindSafe for ClassInstance<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> JsValuesTupleIntoVec for Twhere
T: ToNapiValue,
impl<T> JsValuesTupleIntoVec for Twhere
T: ToNapiValue,
fn into_vec(self, env: *mut napi_env__) -> Result<Vec<*mut napi_value__>, Error>
source§impl<T> ToNapiValue for Twhere
T: NapiRaw,
impl<T> ToNapiValue for Twhere
T: NapiRaw,
source§unsafe fn to_napi_value(
_env: *mut napi_env__,
val: T
) -> Result<*mut napi_value__, Error>
unsafe fn to_napi_value( _env: *mut napi_env__, val: T ) -> Result<*mut napi_value__, Error>
Safety Read more