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

Method as_mut

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

# Safety It must be valid to call `NonNull:: ::as_mut` on the underlying pointer.

(&mut self)

Source from the content-addressed store, hash-verified

146 ///
147 /// It must be valid to call `NonNull::<T>::as_mut` on the underlying pointer.
148 pub(crate) unsafe fn as_mut(&mut self) -> &'a mut T {
149 unsafe { self.ptr.as_mut() }
150 }
151}

Callers 15

run_awaitFunction · 0.45
add_to_linkerMethod · 0.45
pollMethod · 0.45
handle_clientFunction · 0.45
populate_with_wasiMethod · 0.45
httpMethod · 0.45
tlsMethod · 0.45
next_fprMethod · 0.45
resultsMethod · 0.45
paramsMethod · 0.45
suspend_while_suspendingFunction · 0.45

Calls

no outgoing calls

Tested by 4

poll_consumeMethod · 0.36
poll_produceMethod · 0.36
poll_produceMethod · 0.36
poll_consumeMethod · 0.36