[][src]Struct nj_core::val::JsExports

pub struct JsExports { /* fields omitted */ }

Implementations

impl JsExports[src]

pub fn new(env: napi_env, exports: napi_value) -> Self[src]

pub fn env(&self) -> &JsEnv[src]

pub fn prop_builder(&self) -> PropertiesBuilder[src]

pub fn define_property(
    &self,
    properties: PropertiesBuilder
) -> Result<(), NjError>
[src]

pub fn set_name_property(
    &self,
    name: &str,
    js_class: napi_value
) -> Result<(), NjError>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.