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

Method ty

crates/c-api/src/types/memory.rs:34–39  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Calls 1

unreachable_uncheckedFunction · 0.85

Tested by

no test coverage detected