MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / from

Method from

crates/c-api/src/types/structref.rs:14–20  ·  view source on GitHub ↗
(ty: StorageType)

Source from the content-addressed store, hash-verified

12
13impl From<StorageType> for wasmtime_storage_type_t {
14 fn from(ty: StorageType) -> Self {
15 match ty {
16 StorageType::I8 => Self::I8,
17 StorageType::I16 => Self::I16,
18 StorageType::ValType(ty) => Self::Val(Box::new(ty)),
19 }
20 }
21}
22
23#[unsafe(no_mangle)]

Callers

nothing calls this directly

Calls 5

mutabilityMethod · 0.80
ValClass · 0.50
newFunction · 0.50
cloneMethod · 0.45
element_typeMethod · 0.45

Tested by

no test coverage detected