IntoJsResult

Trait IntoJsResult 

Source
pub trait IntoJsResult {
    type Output: Managed + Value;

    // Required method
    fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>(
        self,
        cx: &mut C,
    ) -> JsResult<'b, Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoJsResult for bool

Source§

type Output = JsBoolean

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for f32

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for f64

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for i8

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for i16

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for i32

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for i64

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for u8

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for u16

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for u32

Source§

type Output = JsNumber

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for ()

Source§

type Output = JsUndefined

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl IntoJsResult for String

Source§

type Output = JsString

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<K: IntoJsResult, V: IntoJsResult> IntoJsResult for HashMap<K, V>

Source§

type Output = JsObject

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T1: IntoJsResult> IntoJsResult for (T1,)

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T1: IntoJsResult, T2: IntoJsResult> IntoJsResult for (T1, T2)

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T1: IntoJsResult, T2: IntoJsResult, T3: IntoJsResult> IntoJsResult for (T1, T2, T3)

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T1: IntoJsResult, T2: IntoJsResult, T3: IntoJsResult, T4: IntoJsResult> IntoJsResult for (T1, T2, T3, T4)

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T1: IntoJsResult, T2: IntoJsResult, T3: IntoJsResult, T4: IntoJsResult, T5: IntoJsResult> IntoJsResult for (T1, T2, T3, T4, T5)

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T1: IntoJsResult, T2: IntoJsResult, T3: IntoJsResult, T4: IntoJsResult, T5: IntoJsResult, T6: IntoJsResult> IntoJsResult for (T1, T2, T3, T4, T5, T6)

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, Self::Output>

Source§

impl<T: IntoJsResult> IntoJsResult for Vec<T>

Source§

type Output = JsArray

Source§

fn into_js_result<'a, 'b, 'c: 'b, C: Context<'c>>( self, cx: &mut C, ) -> JsResult<'b, JsArray>

Implementors§