Trait InteropValueList

Source
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

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