Trait wasmedge_sdk::WasmVal

source ·
pub trait WasmVal {
    // Required method
    fn to_wasm_value(self) -> WasmValue;
}
Expand description

Defines the function converting a value of Rust type to the one of Wasm type.

Required Methods§

Implementations on Foreign Types§

source§

impl WasmVal for f32

source§

impl WasmVal for f64

source§

impl WasmVal for i8

source§

impl WasmVal for i16

source§

impl WasmVal for i32

source§

impl WasmVal for i64

source§

impl WasmVal for i128

source§

impl WasmVal for u8

source§

impl WasmVal for u16

source§

impl WasmVal for u32

Implementors§