Struct deno_napi::NapiModule
source · #[repr(C)]pub struct NapiModule {
pub nm_version: i32,
pub nm_flags: u32,
pub nm_register_func: extern "C" fn(env: napi_env, exports: napi_value<'_>) -> napi_value<'_>,
/* private fields */
}
Fields§
§nm_version: i32
§nm_flags: u32
§nm_register_func: extern "C" fn(env: napi_env, exports: napi_value<'_>) -> napi_value<'_>
Trait Implementations§
source§impl Clone for NapiModule
impl Clone for NapiModule
source§fn clone(&self) -> NapiModule
fn clone(&self) -> NapiModule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for NapiModule
impl !Send for NapiModule
impl !Sync for NapiModule
impl Unpin for NapiModule
impl UnwindSafe for NapiModule
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