pub trait TryIntoJs {
    fn try_to_js(self, js_env: &JsEnv) -> Result<*mut napi_value__, NjError>;
}
Expand description

convert to JS object

Required Methods§

Implementations on Foreign Types§

source§

impl TryIntoJs for u64

source§

impl TryIntoJs for String

source§

impl TryIntoJs for i8

source§

impl TryIntoJs for ()

source§

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

source§

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,

source§

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

source§

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

source§

impl TryIntoJs for i32

source§

impl<T> TryIntoJs for Vec<T, Global>where
    T: TryIntoJs,

source§

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

source§

impl TryIntoJs for usize

source§

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,

source§

impl TryIntoJs for i64

source§

impl<T> TryIntoJs for Option<T>where
    T: TryIntoJs,

source§

impl<T, E> TryIntoJs for Result<T, E>where
    T: TryIntoJs,
    E: TryIntoJs,

source§

impl TryIntoJs for u32

source§

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,

source§

impl TryIntoJs for Error

source§

impl TryIntoJs for *mut napi_value__

source§

impl TryIntoJs for f64

source§

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,

source§

impl TryIntoJs for u16

source§

impl TryIntoJs for u8

source§

impl TryIntoJs for bool

source§

impl TryIntoJs for i16

source§

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,

Implementors§

source§

impl TryIntoJs for NjError

source§

impl TryIntoJs for BigInt

source§

impl TryIntoJs for ArrayBuffer

source§

impl TryIntoJs for JsObject

source§

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

source§

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