mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-20 04:06:30 +00:00
doc(runtime-c-api) Improve documentation of wasmer_value_tag
.
This commit is contained in:
@ -3,13 +3,23 @@
|
|||||||
use wasmer_runtime::Value;
|
use wasmer_runtime::Value;
|
||||||
use wasmer_runtime_core::types::Type;
|
use wasmer_runtime_core::types::Type;
|
||||||
|
|
||||||
|
/// Represents all possibles WebAssembly value types.
|
||||||
|
///
|
||||||
|
/// See `wasmer_value_t` to get a complete example.
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub enum wasmer_value_tag {
|
pub enum wasmer_value_tag {
|
||||||
|
/// Represents the `i32` WebAssembly type.
|
||||||
WASM_I32,
|
WASM_I32,
|
||||||
|
|
||||||
|
/// Represents the `i64` WebAssembly type.
|
||||||
WASM_I64,
|
WASM_I64,
|
||||||
|
|
||||||
|
/// Represents the `f32` WebAssembly type.
|
||||||
WASM_F32,
|
WASM_F32,
|
||||||
|
|
||||||
|
/// Represents the `f64` WebAssembly type.
|
||||||
WASM_F64,
|
WASM_F64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user