pub trait InteropValueList {
    const TYS: &'static [ValType];

    // Required methods
    fn into_values(self) -> Vec<Value>;
    fn from_values(values: impl Iterator<Item = Value>) -> Self;
}
Expand description

An InteropValueList is an iterable list of InteropValues (i.e. Rust types that can be converted into WASM Values).

Required Associated Constants§

source

const TYS: &'static [ValType]

Required Methods§

source

fn into_values(self) -> Vec<Value>

source

fn from_values(values: impl Iterator<Item = Value>) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl InteropValueList for ()

source§

const TYS: &'static [ValType] = _

source§

fn into_values(self) -> Vec<Value>

source§

fn from_values(_values: impl Iterator<Item = Value>) -> Self

source§

impl<A: InteropValue> InteropValueList for (A,)

source§

const TYS: &'static [ValType] = _

source§

fn into_values(self) -> Vec<Value>

source§

fn from_values(values: impl Iterator<Item = Value>) -> Self

source§

impl<A: InteropValue, B: InteropValue> InteropValueList for (A, B)

source§

const TYS: &'static [ValType] = _

source§

fn into_values(self) -> Vec<Value>

source§

fn from_values(values: impl Iterator<Item = Value>) -> Self

source§

impl<A: InteropValue, B: InteropValue, C: InteropValue> InteropValueList for (A, B, C)

source§

const TYS: &'static [ValType] = _

source§

fn into_values(self) -> Vec<Value>

source§

fn from_values(values: impl Iterator<Item = Value>) -> Self

Implementors§

source§

impl<A: InteropValue> InteropValueList for A

source§

const TYS: &'static [ValType] = _