Trait InteropValueList

Source
pub trait InteropValueList: Debug + Copy {
    const TYS: &'static [ValType];

    // Required methods
    fn into_values(self) -> Vec<Value>;
    fn try_from_values(
        values: impl ExactSizeIterator<Item = Value>,
    ) -> Result<Self, ValueTypeMismatchError>;
}
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§

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§

impl<A> InteropValueList for (A,)
where A: InteropValue, Value: From<A>,

Source§

impl<A, B> InteropValueList for (A, B)
where A: InteropValue, B: InteropValue, Value: From<A> + From<B>,

Source§

impl<A, B, C> InteropValueList for (A, B, C)
where A: InteropValue, B: InteropValue, C: InteropValue, Value: From<A> + From<B> + From<C>,

Implementors§

Source§

impl<A> InteropValueList for A
where A: InteropValue, Value: From<A>,

Source§

const TYS: &'static [ValType]