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

Method unchecked_dyn_error_mut

crates/core/src/error/error.rs:1643–1646  ·  view source on GitHub ↗

# Safety `self.is_boxed_dyn_error()` must be true.

(&mut self)

Source from the content-addressed store, hash-verified

1641 ///
1642 /// `self.is_boxed_dyn_error()` must be true.
1643 unsafe fn unchecked_dyn_error_mut(&mut self) -> MutPtr<'_, DynError> {
1644 debug_assert!(self.is_boxed_dyn_error());
1645 MutPtr::new(self.inner.cast::<DynError>())
1646 }
1647
1648 pub(crate) fn unpack(&self) -> OomOrDynErrorRef<'_> {
1649 if self.is_oom() {

Callers 1

unpack_mutMethod · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected