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

Method unwrap_memory

crates/environ/src/types.rs:1847–1852  ·  view source on GitHub ↗

Assert that this entity is a memory

(&self)

Source from the content-addressed store, hash-verified

1845
1846 /// Assert that this entity is a memory
1847 pub fn unwrap_memory(&self) -> &Memory {
1848 match self {
1849 EntityType::Memory(g) => g,
1850 _ => panic!("not a memory"),
1851 }
1852 }
1853
1854 /// Assert that this entity is a tag
1855 pub fn unwrap_tag(&self) -> &Tag {

Callers 9

memory64_maximum_minimumFunction · 0.45
async_start_signatureMethod · 0.45
compile_helperFunction · 0.45
mem_optsMethod · 0.45
translate_paramsMethod · 0.45
string_utf8_to_utf16Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected