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

Method ty

crates/c-api/src/types/global.rs:36–41  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

34 }
35
36 pub(crate) fn ty(&self) -> &CGlobalType {
37 match &self.ext.which {
38 CExternType::Global(f) => &f,
39 _ => unsafe { std::hint::unreachable_unchecked() },
40 }
41 }
42}
43
44impl CGlobalType {

Callers 2

wasm_globaltype_contentFunction · 0.45

Calls 1

unreachable_uncheckedFunction · 0.85

Tested by

no test coverage detected