Trait nj_core::TryIntoJs[][src]

pub trait TryIntoJs {
    fn try_to_js(self, js_env: &JsEnv) -> Result<napi_value, NjError>;
}

convert to JS object

Required methods

fn try_to_js(self, js_env: &JsEnv) -> Result<napi_value, NjError>[src]

Loading content...

Implementations on Foreign Types

impl TryIntoJs for bool[src]

impl TryIntoJs for f64[src]

impl TryIntoJs for i64[src]

impl TryIntoJs for i32[src]

impl TryIntoJs for u64[src]

impl TryIntoJs for String[src]

impl TryIntoJs for ()[src]

impl<T, E> TryIntoJs for Result<T, E> where
    T: TryIntoJs,
    E: ToString
[src]

impl<T> TryIntoJs for Option<T> where
    T: TryIntoJs
[src]

impl<T> TryIntoJs for Vec<T> where
    T: TryIntoJs
[src]

impl<T0> TryIntoJs for (T0,) where
    T0: TryIntoJs + Send
[src]

impl<T0, T1> TryIntoJs for (T0, T1) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send
[src]

impl<T0, T1, T2> TryIntoJs for (T0, T1, T2) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send
[src]

impl<T0, T1, T2, T3> TryIntoJs for (T0, T1, T2, T3) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send,
    T3: TryIntoJs + Send
[src]

impl<T0, T1, T2, T3, T4> TryIntoJs for (T0, T1, T2, T3, T4) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send,
    T3: TryIntoJs + Send,
    T4: TryIntoJs + Send
[src]

impl<T0, T1, T2, T3, T4, T5> TryIntoJs for (T0, T1, T2, T3, T4, T5) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send,
    T3: TryIntoJs + Send,
    T4: TryIntoJs + Send,
    T5: TryIntoJs + Send
[src]

impl<T0, T1, T2, T3, T4, T5, T6> TryIntoJs for (T0, T1, T2, T3, T4, T5, T6) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send,
    T3: TryIntoJs + Send,
    T4: TryIntoJs + Send,
    T5: TryIntoJs + Send,
    T6: TryIntoJs + Send
[src]

impl<T0, T1, T2, T3, T4, T5, T6, T7> TryIntoJs for (T0, T1, T2, T3, T4, T5, T6, T7) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send,
    T3: TryIntoJs + Send,
    T4: TryIntoJs + Send,
    T5: TryIntoJs + Send,
    T6: TryIntoJs + Send,
    T7: TryIntoJs + Send
[src]

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TryIntoJs for (T0, T1, T2, T3, T4, T5, T6, T7, T8) where
    T0: TryIntoJs + Send,
    T1: TryIntoJs + Send,
    T2: TryIntoJs + Send,
    T3: TryIntoJs + Send,
    T4: TryIntoJs + Send,
    T5: TryIntoJs + Send,
    T6: TryIntoJs + Send,
    T7: TryIntoJs + Send,
    T8: TryIntoJs + Send
[src]

Loading content...

Implementors

impl TryIntoJs for BigInt[src]

impl TryIntoJs for ArrayBuffer[src]

impl TryIntoJs for JsObject[src]

impl TryIntoJs for napi_value[src]

impl<F> TryIntoJs for JsPromiseFuture<F> where
    F: Future + 'static + Send,
    F::Output: TryIntoJs
[src]

impl<St, F> TryIntoJs for JsThen<St, F> where
    St: Stream + Send + 'static,
    F: FnMut(St::Item) + Send + 'static,
    St::Item: Debug
[src]

Loading content...