referrerpolicy=no-referrer-when-downgrade
pub unsafe trait WasmResults: WasmParams { }
Expand description

A trait used for Func::typed and with TypedFunc to represent the set of results for wasm functions.

This is currently only implemented for () and for bare types that can be returned. This is not yet implemented for tuples because a multi-value TypedFunc is not currently supported.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl WasmResults for ()
where (): HostAbi,

§

impl<A1> WasmResults for (A1,)
where A1: WasmTy, (<A1 as WasmTy>::Abi,): HostAbi,

§

impl<A1, A2> WasmResults for (A1, A2)
where A1: WasmTy, A2: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3> WasmResults for (A1, A2, A3)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4> WasmResults for (A1, A2, A3, A4)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5> WasmResults for (A1, A2, A3, A4, A5)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6> WasmResults for (A1, A2, A3, A4, A5, A6)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7> WasmResults for (A1, A2, A3, A4, A5, A6, A7)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi, <A11 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi, <A11 as WasmTy>::Abi, <A12 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi, <A11 as WasmTy>::Abi, <A12 as WasmTy>::Abi, <A13 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, A14: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi, <A11 as WasmTy>::Abi, <A12 as WasmTy>::Abi, <A13 as WasmTy>::Abi, <A14 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, A14: WasmTy, A15: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi, <A11 as WasmTy>::Abi, <A12 as WasmTy>::Abi, <A13 as WasmTy>::Abi, <A14 as WasmTy>::Abi, <A15 as WasmTy>::Abi): HostAbi,

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> WasmResults for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy, A8: WasmTy, A9: WasmTy, A10: WasmTy, A11: WasmTy, A12: WasmTy, A13: WasmTy, A14: WasmTy, A15: WasmTy, A16: WasmTy, (<A1 as WasmTy>::Abi, <A2 as WasmTy>::Abi, <A3 as WasmTy>::Abi, <A4 as WasmTy>::Abi, <A5 as WasmTy>::Abi, <A6 as WasmTy>::Abi, <A7 as WasmTy>::Abi, <A8 as WasmTy>::Abi, <A9 as WasmTy>::Abi, <A10 as WasmTy>::Abi, <A11 as WasmTy>::Abi, <A12 as WasmTy>::Abi, <A13 as WasmTy>::Abi, <A14 as WasmTy>::Abi, <A15 as WasmTy>::Abi, <A16 as WasmTy>::Abi): HostAbi,

Implementors§

§

impl<T> WasmResults for T
where T: WasmTy, (<T as WasmTy>::Abi,): HostAbi,