pub struct JsExports { /* private fields */ }
Implementations§
Source§impl JsExports
impl JsExports
pub fn new(env: *mut napi_env__, exports: *mut napi_value__) -> JsExports
pub fn env(&self) -> &JsEnv
pub fn prop_builder(&self) -> PropertiesBuilder
pub fn define_property( &self, properties: PropertiesBuilder, ) -> Result<(), NjError>
pub fn set_name_property( &self, name: &str, js_class: *mut napi_value__, ) -> Result<(), NjError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsExports
impl RefUnwindSafe for JsExports
impl !Send for JsExports
impl !Sync for JsExports
impl Unpin for JsExports
impl UnwindSafe for JsExports
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