Trait WasmType

Source
pub trait WasmType: Sized { }
Expand description

Trait implemented by types that can be passed to and from wasm.

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

Source§

impl WasmType for f64

Source§

impl WasmType for i32

Source§

impl WasmType for i64

Source§

impl WasmType for u32

Source§

impl WasmType for u64

Source§

impl WasmType for ()

Implementors§