wasmedge_sdk

Trait WasmValTypeList

Source
pub trait WasmValTypeList
where Self: Sized,
{ type Array: AsMut<[i128]>; // Required method fn wasm_types() -> &'static [ValType]; }
Expand description

Describes the mapping of a tuple of Rust types to Wasm types.

use wasmedge_sdk::{types::ExternRef, ValType, WasmValTypeList};

assert_eq!(
     <(i32, i64, f32, f64, ExternRef)>::wasm_types(),
     [ValType::I32, ValType::I64, ValType::F32, ValType::F64, ValType::ExternRef]
);

Required Associated Types§

Source

type Array: AsMut<[i128]>

The array type that can hold all the represented values.

Note that all values are stored in their binary form.

Required Methods§

Source

fn wasm_types() -> &'static [ValType]

Get the Wasm types for the tuple (list) of currently represented values.

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§

Source§

impl WasmValTypeList for ()

Source§

type Array = [i128; 0]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2> WasmValTypeList for (A1, A2)
where A1: WasmValType, A2: WasmValType,

Source§

type Array = [i128; 2]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3> WasmValTypeList for (A1, A2, A3)
where A1: WasmValType, A2: WasmValType, A3: WasmValType,

Source§

type Array = [i128; 3]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4> WasmValTypeList for (A1, A2, A3, A4)

Source§

type Array = [i128; 4]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5> WasmValTypeList for (A1, A2, A3, A4, A5)

Source§

type Array = [i128; 5]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6> WasmValTypeList for (A1, A2, A3, A4, A5, A6)

Source§

type Array = [i128; 6]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7)

Source§

type Array = [i128; 7]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8)

Source§

type Array = [i128; 8]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9)

Source§

type Array = [i128; 9]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)

Source§

type Array = [i128; 10]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)

Source§

type Array = [i128; 11]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)

Source§

type Array = [i128; 12]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)

Source§

type Array = [i128; 13]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)

Source§

type Array = [i128; 14]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)

Source§

type Array = [i128; 15]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)

Source§

type Array = [i128; 16]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)

Source§

type Array = [i128; 17]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18)

Source§

type Array = [i128; 18]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19)

Source§

type Array = [i128; 19]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20)

Source§

type Array = [i128; 20]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21)

Source§

type Array = [i128; 21]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22)

Source§

type Array = [i128; 22]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23)

Source§

type Array = [i128; 23]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24)

Source§

type Array = [i128; 24]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25)

Source§

type Array = [i128; 25]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26)

Source§

type Array = [i128; 26]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27)

Source§

type Array = [i128; 27]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28)

Source§

type Array = [i128; 28]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29)

Source§

type Array = [i128; 29]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30)

Source§

type Array = [i128; 30]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30, A31> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30, A31)

Source§

type Array = [i128; 31]

Source§

fn wasm_types() -> &'static [ValType]

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30, A31, A32> WasmValTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30, A31, A32)

Source§

type Array = [i128; 32]

Source§

fn wasm_types() -> &'static [ValType]

Implementors§

Source§

impl<A1> WasmValTypeList for A1
where A1: WasmValType,

Source§

type Array = [i128; 1]