Trait wasmer::WasmTypeList

source ·
pub trait WasmTypeListwhere
    Self: Sized,{
    type CStruct;
    type Array: AsMut<[RawValue]>;

    // Required methods
    fn size() -> u32;
    unsafe fn from_array(
        store: &mut impl AsStoreMut,
        array: Self::Array
    ) -> Self;
    unsafe fn from_slice(
        store: &mut impl AsStoreMut,
        slice: &[RawValue]
    ) -> Result<Self, TryFromSliceError>;
    unsafe fn into_array(self, store: &mut impl AsStoreMut) -> Self::Array;
    fn empty_array() -> Self::Array;
    unsafe fn from_c_struct(
        store: &mut impl AsStoreMut,
        c_struct: Self::CStruct
    ) -> Self;
    unsafe fn into_c_struct(self, store: &mut impl AsStoreMut) -> Self::CStruct;
    unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, ptr: *mut RawValue);
    fn wasm_types() -> &'static [Type];
}
Expand description

The WasmTypeList trait represents a tuple (list) of Wasm typed values. It is used to get low-level representation of such a tuple.

Required Associated Types§

source

type CStruct

The C type (a struct) that can hold/represent all the represented values.

source

type Array: AsMut<[RawValue]>

The array type that can hold all the represented values.

Note that all values are stored in their binary form.

Required Methods§

source

fn size() -> u32

The size of the array

source

unsafe fn from_array(store: &mut impl AsStoreMut, array: Self::Array) -> Self

Constructs Self based on an array of values.

Safety
source

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

Constructs Self based on a slice of values.

from_slice returns a Result because it is possible that the slice doesn’t have the same size than Self::Array, in which circumstance an error of kind TryFromSliceError will be returned.

Safety
source

unsafe fn into_array(self, store: &mut impl AsStoreMut) -> Self::Array

Builds and returns an array of type Array from a tuple (list) of values.

Safety
source

fn empty_array() -> Self::Array

Allocates and return an empty array of type Array that will hold a tuple (list) of values, usually to hold the returned values of a WebAssembly function call.

source

unsafe fn from_c_struct( store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

Builds a tuple (list) of values from a C struct of type CStruct.

Safety
source

unsafe fn into_c_struct(self, store: &mut impl AsStoreMut) -> Self::CStruct

Builds and returns a C struct of type CStruct from a tuple (list) of values.

Safety
source

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, ptr: *mut RawValue)

Writes the contents of a C struct to an array of RawValue.

Safety
source

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

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

Implementations on Foreign Types§

source§

impl WasmTypeList for ()

§

type CStruct = S0

§

type Array = [RawValue; 0]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType,

§

type CStruct = S10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>

§

type Array = [RawValue; 10]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

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> WasmTypeList 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)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType, A11: FromToNativeWasmType, A12: FromToNativeWasmType, A13: FromToNativeWasmType, A14: FromToNativeWasmType, A15: FromToNativeWasmType, A16: FromToNativeWasmType, A17: FromToNativeWasmType, A18: FromToNativeWasmType, A19: FromToNativeWasmType, A20: FromToNativeWasmType, A21: FromToNativeWasmType, A22: FromToNativeWasmType, A23: FromToNativeWasmType, A24: FromToNativeWasmType,

§

type CStruct = S24<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24>

§

type Array = [RawValue; 24]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4> WasmTypeList for (A1, A2, A3, A4)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType,

§

type CStruct = S4<A1, A2, A3, A4>

§

type Array = [RawValue; 4]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType, A11: FromToNativeWasmType,

§

type CStruct = S11<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>

§

type Array = [RawValue; 11]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2> WasmTypeList for (A1, A2)where A1: FromToNativeWasmType, A2: FromToNativeWasmType,

§

type CStruct = S2<A1, A2>

§

type Array = [RawValue; 2]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S19<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19>

§

type Array = [RawValue; 19]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S17<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17>

§

type Array = [RawValue; 17]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

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> WasmTypeList 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)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType, A11: FromToNativeWasmType, A12: FromToNativeWasmType, A13: FromToNativeWasmType, A14: FromToNativeWasmType, A15: FromToNativeWasmType, A16: FromToNativeWasmType, A17: FromToNativeWasmType, A18: FromToNativeWasmType, A19: FromToNativeWasmType, A20: FromToNativeWasmType, A21: FromToNativeWasmType, A22: FromToNativeWasmType, A23: FromToNativeWasmType, A24: FromToNativeWasmType, A25: FromToNativeWasmType,

§

type CStruct = S25<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>

§

type Array = [RawValue; 25]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S21<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21>

§

type Array = [RawValue; 21]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5, A6> WasmTypeList for (A1, A2, A3, A4, A5, A6)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType,

§

type CStruct = S6<A1, A2, A3, A4, A5, A6>

§

type Array = [RawValue; 6]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType,

§

type CStruct = S9<A1, A2, A3, A4, A5, A6, A7, A8, A9>

§

type Array = [RawValue; 9]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16>

§

type Array = [RawValue; 16]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl WasmTypeList for Infallible

§

type CStruct = Infallible

§

type Array = [RawValue; 0]

source§

fn size() -> u32

source§

unsafe fn from_array(_: &mut impl AsStoreMut, _: Self::Array) -> Self

source§

unsafe fn from_slice( _: &mut impl AsStoreMut, _: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct(_: &mut impl AsStoreMut, self_: Self::CStruct) -> Self

source§

unsafe fn into_c_struct(self, _: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(_: Self::CStruct, _: *mut RawValue)

source§

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

source§

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

§

type CStruct = S22<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22>

§

type Array = [RawValue; 22]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5> WasmTypeList for (A1, A2, A3, A4, A5)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType,

§

type CStruct = S5<A1, A2, A3, A4, A5>

§

type Array = [RawValue; 5]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3> WasmTypeList for (A1, A2, A3)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType,

§

type CStruct = S3<A1, A2, A3>

§

type Array = [RawValue; 3]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S14<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14>

§

type Array = [RawValue; 14]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType,

§

type CStruct = S8<A1, A2, A3, A4, A5, A6, A7, A8>

§

type Array = [RawValue; 8]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S15<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>

§

type Array = [RawValue; 15]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

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> WasmTypeList 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)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType, A11: FromToNativeWasmType, A12: FromToNativeWasmType, A13: FromToNativeWasmType, A14: FromToNativeWasmType, A15: FromToNativeWasmType, A16: FromToNativeWasmType, A17: FromToNativeWasmType, A18: FromToNativeWasmType, A19: FromToNativeWasmType, A20: FromToNativeWasmType, A21: FromToNativeWasmType, A22: FromToNativeWasmType, A23: FromToNativeWasmType, A24: FromToNativeWasmType, A25: FromToNativeWasmType, A26: FromToNativeWasmType,

§

type CStruct = S26<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>

§

type Array = [RawValue; 26]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S7<A1, A2, A3, A4, A5, A6, A7>

§

type Array = [RawValue; 7]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType, A11: FromToNativeWasmType, A12: FromToNativeWasmType, A13: FromToNativeWasmType, A14: FromToNativeWasmType, A15: FromToNativeWasmType, A16: FromToNativeWasmType, A17: FromToNativeWasmType, A18: FromToNativeWasmType, A19: FromToNativeWasmType, A20: FromToNativeWasmType, A21: FromToNativeWasmType, A22: FromToNativeWasmType, A23: FromToNativeWasmType,

§

type CStruct = S23<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23>

§

type Array = [RawValue; 23]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)where A1: FromToNativeWasmType, A2: FromToNativeWasmType, A3: FromToNativeWasmType, A4: FromToNativeWasmType, A5: FromToNativeWasmType, A6: FromToNativeWasmType, A7: FromToNativeWasmType, A8: FromToNativeWasmType, A9: FromToNativeWasmType, A10: FromToNativeWasmType, A11: FromToNativeWasmType, A12: FromToNativeWasmType,

§

type CStruct = S12<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12>

§

type Array = [RawValue; 12]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>

§

type Array = [RawValue; 13]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S18<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18>

§

type Array = [RawValue; 18]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

source§

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

§

type CStruct = S20<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20>

§

type Array = [RawValue; 20]

source§

fn size() -> u32

source§

unsafe fn from_array(_store: &mut impl AsStoreMut, array: Self::Array) -> Self

source§

unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue] ) -> Result<Self, TryFromSliceError>

source§

unsafe fn into_array(self, _store: &mut impl AsStoreMut) -> Self::Array

source§

fn empty_array() -> Self::Array

source§

unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: Self::CStruct ) -> Self

source§

unsafe fn into_c_struct(self, _store: &mut impl AsStoreMut) -> Self::CStruct

source§

unsafe fn write_c_struct_to_ptr(c_struct: Self::CStruct, _ptr: *mut RawValue)

source§

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

Implementors§

source§

impl<A1> WasmTypeList for A1where A1: FromToNativeWasmType,

§

type CStruct = S1<A1>

§

type Array = [RawValue; 1]