Expand description
The trait to wrap rust function to JS directly
The possible range of function arguments
Post-processing the function
sourceimpl<'js, F, R, A, B> AsFunction<'js, (A, B), Promised<R>> for Async<F> where
F: Fn(A, B) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
sourceimpl<'js, F, R, A, B> AsFunction<'js, (A, B), R> for MutFn<F> where
F: FnMut(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
sourceimpl<'js, F, R, A, B> AsFunction<'js, (A, B), R> for OnceFn<F> where
F: FnOnce(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
sourceimpl<'js, F, R, A, B> AsFunction<'js, (A, B), R> for F where
F: Fn(A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<MutFn<F>> where
F: FnMut(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<OnceFn<F>> where
F: FnOnce(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), Promised<R>> for Async<F> where
F: Fn(A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), R> for MutFn<F> where
F: FnMut(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), R> for OnceFn<F> where
F: FnOnce(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D> AsFunction<'js, (A, B, D), R> for F where
F: Fn(A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<MutFn<F>> where
F: FnMut(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<OnceFn<F>> where
F: FnOnce(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), Promised<R>> for Async<F> where
F: Fn(A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), R> for MutFn<F> where
F: FnMut(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), R> for OnceFn<F> where
F: FnOnce(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E> AsFunction<'js, (A, B, D, E), R> for F where
F: Fn(A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<MutFn<F>> where
F: FnMut(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<OnceFn<F>> where
F: FnOnce(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), Promised<R>> for Async<F> where
F: Fn(A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), R> for MutFn<F> where
F: FnMut(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), R> for OnceFn<F> where
F: FnOnce(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G> AsFunction<'js, (A, B, D, E, G), R> for F where
F: Fn(A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<MutFn<F>> where
F: FnMut(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<OnceFn<F>> where
F: FnOnce(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), Promised<R>> for Async<F> where
F: Fn(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), R> for MutFn<F> where
F: FnMut(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), R> for OnceFn<F> where
F: FnOnce(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, A, B, D, E, G, H> AsFunction<'js, (A, B, D, E, G, H), R> for F where
F: Fn(A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, T, A> AsFunction<'js, (T, A), R> for Method<F> where
F: Fn(T, A) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B> AsFunction<'js, (T, A, B), R> for Method<F> where
F: Fn(T, A, B) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D> AsFunction<'js, (T, A, B, D), Promised<R>> for Async<Method<F>> where
F: Fn(T, A, B, D) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D> AsFunction<'js, (T, A, B, D), R> for Method<F> where
F: Fn(T, A, B, D) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D, E> AsFunction<'js, (T, A, B, D, E), Promised<R>> for Async<Method<F>> where
F: Fn(T, A, B, D, E) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D, E> AsFunction<'js, (T, A, B, D, E), R> for Method<F> where
F: Fn(T, A, B, D, E) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D, E, G> AsFunction<'js, (T, A, B, D, E, G), Promised<R>> for Async<Method<F>> where
F: Fn(T, A, B, D, E, G) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D, E, G> AsFunction<'js, (T, A, B, D, E, G), R> for Method<F> where
F: Fn(T, A, B, D, E, G) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D, E, G, H> AsFunction<'js, (T, A, B, D, E, G, H), Promised<R>> for Async<Method<F>> where
F: Fn(T, A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: Future + ParallelSend + 'static,
R::Output: for<'js_> IntoJs<'js_>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,
sourceimpl<'js, F, R, T, A, B, D, E, G, H> AsFunction<'js, (T, A, B, D, E, G, H), R> for Method<F> where
F: Fn(T, A, B, D, E, G, H) -> R + ParallelSend + 'static,
R: IntoJs<'js>,
T: FromJs<'js>,
A: FromInput<'js>,
B: FromInput<'js>,
D: FromInput<'js>,
E: FromInput<'js>,
G: FromInput<'js>,
H: FromInput<'js>,