MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / ty

Method ty

wasmtime-jni/src/wasm_value.rs:226–233  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

224 }
225
226 pub fn ty(&self) -> WasmTy {
227 match self {
228 // WasmVal::ByteBuffer(_) => WasmTy::ByteBuffer,
229 WasmVal::ByteArray { .. } => WasmTy::ByteArray,
230 WasmVal::String(_) => WasmTy::String,
231 WasmVal::Val(val) => val.ty().into(),
232 }
233 }
234
235 pub fn store_to_args<'w, S: AsContextMut>(
236 self,

Calls

no outgoing calls

Tested by

no test coverage detected