Trait IntoMakeClosure

Source
pub trait IntoMakeClosure<T, Params, Results> {
    // Required method
    fn into_make_closure(
        self,
    ) -> Box<dyn Fn(Rc<RefCell<T>>) -> (JsValue, DropHandle)>;
}

Required Methods§

Source

fn into_make_closure( self, ) -> Box<dyn Fn(Rc<RefCell<T>>) -> (JsValue, DropHandle)>

Implementors§

Source§

impl<T, P0, P1, P2, P3, P4, P5, P6, P7, R, F> IntoMakeClosure<T, (P0, P1, P2, P3, P4, P5, P6, P7), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1, P2, P3, P4, P5, P6, P7) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, P4: FromWasmAbi + 'static, P5: FromWasmAbi + 'static, P6: FromWasmAbi + 'static, P7: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, P0, P1, P2, P3, P4, P5, P6, R, F> IntoMakeClosure<T, (P0, P1, P2, P3, P4, P5, P6), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1, P2, P3, P4, P5, P6) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, P4: FromWasmAbi + 'static, P5: FromWasmAbi + 'static, P6: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, P0, P1, P2, P3, P4, P5, R, F> IntoMakeClosure<T, (P0, P1, P2, P3, P4, P5), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1, P2, P3, P4, P5) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, P4: FromWasmAbi + 'static, P5: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, P0, P1, P2, P3, P4, R, F> IntoMakeClosure<T, (P0, P1, P2, P3, P4), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1, P2, P3, P4) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, P4: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, P0, P1, P2, P3, R, F> IntoMakeClosure<T, (P0, P1, P2, P3), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1, P2, P3) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, P0, P1, P2, R, F> IntoMakeClosure<T, (P0, P1, P2), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1, P2) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, P0, P1, R, F> IntoMakeClosure<T, (P0, P1), R> for F
where T: 'static, F: Fn(Caller<T>, P0, P1) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, f32, R> for F
where T: 'static, F: Fn(Caller<T>, f32) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, f64, R> for F
where T: 'static, F: Fn(Caller<T>, f64) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, i32, R> for F
where T: 'static, F: Fn(Caller<T>, i32) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, i64, R> for F
where T: 'static, F: Fn(Caller<T>, i64) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, u32, R> for F
where T: 'static, F: Fn(Caller<T>, u32) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, u64, R> for F
where T: 'static, F: Fn(Caller<T>, u64) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,

Source§

impl<T, R, F> IntoMakeClosure<T, (), R> for F
where T: 'static, F: Fn(Caller<T>) -> R + 'static, R: ToJsValue + 'static, Result<R::ReturnAbi, JsValue>: ReturnWasmAbi,