Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
impl CGlobalType {
Callers
2
wasm_globaltype_content
Function · 0.45
wasm_globaltype_mutability
Function · 0.45
Calls
1
unreachable_unchecked
Function · 0.85
Tested by
no test coverage detected