Trait InteropValue

Source
pub trait InteropValue
where Self: Copy + Debug + PartialEq + TryFrom<Value, Error = ()>, Value: From<Self>,
{ const TY: ValType; }
Expand description

An InteropValue is a Rust types that can be converted into a WASM Value. This trait is intended to simplify translation between Rust values and WASM values and thus is not used internally.

Required Associated Constants§

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 InteropValue for f32

Source§

impl InteropValue for f64

Source§

impl InteropValue for i32

Source§

impl InteropValue for i64

Source§

impl InteropValue for u32

Source§

impl InteropValue for u64

Source§

impl InteropValue for [u8; 16]

Source§

const TY: ValType = ValType::VecType

Implementors§