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

Method unchecked_context_mut

crates/wasmtime/src/runtime/vm.rs:257–259  ·  view source on GitHub ↗

Asserts that this `VMStore` was originally paired with `StoreInner ` and then casts to the `StoreContextMut` type. # Unsafety This method is not safe as there's no static guarantee that `T` is correct for this store.

(&mut self)

Source from the content-addressed store, hash-verified

255 /// This method is not safe as there's no static guarantee that `T` is
256 /// correct for this store.
257 pub(crate) unsafe fn unchecked_context_mut<T>(&mut self) -> StoreContextMut<'_, T> {
258 unsafe { StoreContextMut(&mut *(self as *mut dyn VMStore as *mut StoreInner<T>)) }
259 }
260}
261
262/// A newtype wrapper around `NonNull<dyn VMStore>` intended to be a

Callers 2

array_call_trampolineMethod · 0.80
cabi_entrypointMethod · 0.80

Calls 1

StoreContextMutClass · 0.85

Tested by

no test coverage detected