pub trait IntoClosure<Params, Results> {
    // Required method
    fn into_closure(self) -> (JsValue, DropHandler);
}

Required Methods§

Implementors§

source§

impl<P0, P1, P2, P3, P4, P5, P6, P7, R, F> IntoClosure<(P0, P1, P2, P3, P4, P5, P6, P7), R> for Fwhere F: Fn(Caller<()>, 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: IntoImportResults + 'static,

source§

impl<P0, P1, P2, P3, P4, P5, P6, R, F> IntoClosure<(P0, P1, P2, P3, P4, P5, P6), R> for Fwhere F: Fn(Caller<()>, 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: IntoImportResults + 'static,

source§

impl<P0, P1, P2, P3, P4, P5, R, F> IntoClosure<(P0, P1, P2, P3, P4, P5), R> for Fwhere F: Fn(Caller<()>, 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: IntoImportResults + 'static,

source§

impl<P0, P1, P2, P3, P4, R, F> IntoClosure<(P0, P1, P2, P3, P4), R> for Fwhere F: Fn(Caller<()>, P0, P1, P2, P3, P4) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, P4: FromWasmAbi + 'static, R: IntoImportResults + 'static,

source§

impl<P0, P1, P2, P3, R, F> IntoClosure<(P0, P1, P2, P3), R> for Fwhere F: Fn(Caller<()>, P0, P1, P2, P3) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, P3: FromWasmAbi + 'static, R: IntoImportResults + 'static,

source§

impl<P0, P1, P2, R, F> IntoClosure<(P0, P1, P2), R> for Fwhere F: Fn(Caller<()>, P0, P1, P2) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, P2: FromWasmAbi + 'static, R: IntoImportResults + 'static,

source§

impl<P0, P1, R, F> IntoClosure<(P0, P1), R> for Fwhere F: Fn(Caller<()>, P0, P1) -> R + 'static, P0: FromWasmAbi + 'static, P1: FromWasmAbi + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<f32, R> for Fwhere F: Fn(Caller<()>, f32) -> R + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<f64, R> for Fwhere F: Fn(Caller<()>, f64) -> R + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<i32, R> for Fwhere F: Fn(Caller<()>, i32) -> R + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<i64, R> for Fwhere F: Fn(Caller<()>, i64) -> R + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<u32, R> for Fwhere F: Fn(Caller<()>, u32) -> R + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<u64, R> for Fwhere F: Fn(Caller<()>, u64) -> R + 'static, R: IntoImportResults + 'static,

source§

impl<R, F> IntoClosure<(), R> for Fwhere F: Fn(Caller<()>) -> R + 'static, R: IntoImportResults + 'static,