Trait TryIntoJs

Source
pub trait TryIntoJs {
    // Required method
    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 bool

Source§

impl TryIntoJs for f64

Source§

impl TryIntoJs for i8

Source§

impl TryIntoJs for i16

Source§

impl TryIntoJs for i32

Source§

impl TryIntoJs for i64

Source§

impl TryIntoJs for *mut napi_value__

Source§

impl TryIntoJs for u8

Source§

impl TryIntoJs for u16

Source§

impl TryIntoJs for u32

Source§

impl TryIntoJs for u64

Source§

impl TryIntoJs for ()

Source§

impl TryIntoJs for usize

Source§

impl TryIntoJs for String

Source§

impl TryIntoJs for Error

Source§

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

Source§

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

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> TryIntoJs for (T0, T1, T2, T3)
where T0: TryIntoJs + Send, T1: TryIntoJs + Send, T2: TryIntoJs + Send, T3: 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, 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<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<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, 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<T> TryIntoJs for Option<T>
where T: TryIntoJs,

Source§

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

Source§

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

Implementors§

Source§

impl TryIntoJs for NjError

Source§

impl TryIntoJs for BigInt

Source§

impl TryIntoJs for ArrayBuffer

Source§

impl TryIntoJs for SafeArrayBuffer

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,