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

Method as_ref

crates/wasmtime/src/runtime/vm/send_sync_ptr.rs:30–32  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

28 /// valid to get a shared reference to it at this time.
29 #[inline]
30 pub unsafe fn as_ref<'a>(&self) -> &'a T {
31 unsafe { self.0.as_ref() }
32 }
33
34 /// Unsafely assert that this is a pointer to valid contents and it's also
35 /// valid to get a mutable reference to it at this time.

Callers 15

options_memoryMethod · 0.45
options_memory_mutMethod · 0.45
runMethod · 0.45
resourceMethod · 0.45
assert_type_matchesMethod · 0.45
instanceMethod · 0.45
casesMethod · 0.45
okMethod · 0.45
errMethod · 0.45
tyMethod · 0.45

Calls

no outgoing calls

Tested by 1

reset_with_pagemapFunction · 0.36