wiggle::wasmtime_crate

Trait WasmTyList

pub unsafe trait WasmTyList {
    // Required method
    fn valtypes() -> impl Iterator<Item = ValType>;
}
Expand description

Trait implemented for various tuples made up of types which implement WasmTy that can be passed to Func::wrap_inner and [HostContext::from_closure].

Required Methods§

fn valtypes() -> impl Iterator<Item = ValType>

Get the value type that each Type in the list represents.

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§

§

impl WasmTyList for ()

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1> WasmTyList for (A1,)
where A1: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2> WasmTyList for (A1, A2)
where A1: WasmTy, A2: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3> WasmTyList for (A1, A2, A3)
where A1: WasmTy, A2: WasmTy, A3: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4> WasmTyList for (A1, A2, A3, A4)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5> WasmTyList for (A1, A2, A3, A4, A5)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6> WasmTyList for (A1, A2, A3, A4, A5, A6)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7> WasmTyList for (A1, A2, A3, A4, A5, A6, A7)
where A1: WasmTy, A2: WasmTy, A3: WasmTy, A4: WasmTy, A5: WasmTy, A6: WasmTy, A7: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> WasmTyList 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,

§

fn valtypes() -> impl Iterator<Item = ValType>

§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17> WasmTyList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)
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, A17: WasmTy,

§

fn valtypes() -> impl Iterator<Item = ValType>

Implementors§