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

Method into_shared_memory

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

Source from the content-addressed store, hash-verified

88 /// Returns `None` if this is not a shared memory.
89 #[inline]
90 pub fn into_shared_memory(self) -> Option<SharedMemory> {
91 match self {
92 Extern::SharedMemory(memory) => Some(memory),
93 _ => None,
94 }
95 }
96
97 /// Returns the underlying `Tag`, if this external is a tag.
98 ///

Callers 2

get_shared_memoryMethod · 0.80
debug_shared_memoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected