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

Method into_memory

crates/wasmtime/src/runtime/externals.rs:78–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 /// Returns `None` if this is not a memory.
77 #[inline]
78 pub fn into_memory(self) -> Option<Memory> {
79 match self {
80 Extern::Memory(memory) => Some(memory),
81 _ => None,
82 }
83 }
84
85 /// Returns the underlying `SharedMemory`, if this external is a shared
86 /// memory.

Callers 7

debug_idsFunction · 0.80
get_memoryMethod · 0.80
debug_memoryMethod · 0.80
make_externsFunction · 0.80
dummy_memory_importFunction · 0.80
make_api_callsFunction · 0.80
get_memoryMethod · 0.80

Calls

no outgoing calls

Tested by 2

make_externsFunction · 0.64
dummy_memory_importFunction · 0.64