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

Method as_ref

crates/core/src/error/ptr.rs:41–43  ·  view source on GitHub ↗

# Safety It must be valid to call `NonNull:: ::as_ref` on our underlying pointer.

(&self)

Source from the content-addressed store, hash-verified

39 ///
40 /// It must be valid to call `NonNull::<T>::as_ref` on our underlying pointer.
41 pub(crate) unsafe fn as_ref(&self) -> &T {
42 unsafe { self.ptr.as_ref() }
43 }
44
45 /// # Safety
46 ///

Callers 15

create_new_configFunction · 0.45
directoryMethod · 0.45
on_cache_get_asyncMethod · 0.45
on_cache_update_asyncMethod · 0.45
handle_on_cache_getMethod · 0.45
append_codeMethod · 0.45
callsMethod · 0.45
sizeMethod · 0.45
inlineMethod · 0.45
function_compilerMethod · 0.45
unwind_infoMethod · 0.45

Calls

no outgoing calls

Tested by 3

sourceMethod · 0.36