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§

source

const WASM_TYPE: ValType

The Wasm type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WasmValType for f32

source§

const WASM_TYPE: ValType = ValType::F32

source§

impl WasmValType for f64

source§

const WASM_TYPE: ValType = ValType::F64

source§

impl WasmValType for i8

source§

const WASM_TYPE: ValType = ValType::I32

source§

impl WasmValType for i16

source§

const WASM_TYPE: ValType = ValType::I32

source§

impl WasmValType for i32

source§

const WASM_TYPE: ValType = ValType::I32

source§

impl WasmValType for i64

source§

const WASM_TYPE: ValType = ValType::I64

source§

impl WasmValType for i128

source§

const WASM_TYPE: ValType = ValType::V128

source§

impl WasmValType for u8

source§

const WASM_TYPE: ValType = ValType::I32

source§

impl WasmValType for u16

source§

const WASM_TYPE: ValType = ValType::I32

source§

impl WasmValType for u32

source§

const WASM_TYPE: ValType = ValType::I64

Implementors§

source§

impl WasmValType for FuncRef

source§

const WASM_TYPE: ValType = ValType::FuncRef

source§

impl WasmValType for ExternRef

source§

const WASM_TYPE: ValType = ValType::ExternRef