Trait nj_core::TryIntoJs

source ·
pub trait TryIntoJs {
    // Required method
    fn try_to_js(self, js_env: &JsEnv) -> Result<napi_value, NjError>;
}
Expand description

convert to JS object

Required Methods§

Implementations on Foreign Types§

source§

impl TryIntoJs for i32

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,

source§

impl TryIntoJs for bool

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<T> TryIntoJs for Option<T>where T: TryIntoJs,

source§

impl TryIntoJs for u16

source§

impl TryIntoJs for i16

source§

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

source§

impl TryIntoJs for String

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 TryIntoJs for Error

source§

impl TryIntoJs for u64

source§

impl TryIntoJs for u8

source§

impl TryIntoJs for i64

source§

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

source§

impl TryIntoJs for ()

source§

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

source§

impl TryIntoJs for i8

source§

impl TryIntoJs for u32

source§

impl TryIntoJs for usize

source§

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

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<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<T, E> TryIntoJs for Result<T, E>where T: TryIntoJs, E: TryIntoJs,

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,

Implementors§

source§

impl TryIntoJs for NjError

source§

impl TryIntoJs for BigInt

source§

impl TryIntoJs for ArrayBuffer

source§

impl TryIntoJs for JsObject

source§

impl TryIntoJs for napi_value

source§

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

source§

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