pub trait WasmValType {
const WASM_TYPE: ValType;
}
Expand description
Describes the mapping of Rust type to Wasm type.
use wasmedge_sdk::{WasmValType, ValType};
assert_eq!(i32::WASM_TYPE, ValType::I32);
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.