wasmer

Trait WasmTypeList

Source
pub trait WasmTypeList
where 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.

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 WasmTypeList for Infallible

Source§

type CStruct = Infallible

Source§

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 WasmTypeList for ()

Source§

type CStruct = S0

Source§

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> WasmTypeList for (A1, A2)

Source§

type CStruct = S2<A1, A2>

Source§

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> WasmTypeList for (A1, A2, A3)

Source§

type CStruct = S3<A1, A2, A3>

Source§

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> WasmTypeList for (A1, A2, A3, A4)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5)

Source§

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

Source§

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, A4, A5, A6> WasmTypeList for (A1, A2, A3, A4, A5, A6)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)

Source§

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

Source§

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, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)

Source§

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

Source§

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)

Source§

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

Source§

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> WasmTypeList for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<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)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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, 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)

Source§

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

Source§

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]

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)

Source§

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

Source§

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, 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)

Source§

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>

Source§

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, 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)

Source§

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>

Source§

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, 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)

Source§

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>

Source§

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, 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)

Source§

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>

Source§

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, 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)

Source§

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>

Source§

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]

Implementors§

Source§

impl<A1> WasmTypeList for A1

Source§

type CStruct = S1<A1>

Source§

type Array = [RawValue; 1]