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

Method unchecked_into_dyn_error

crates/core/src/error/error.rs:1625–1630  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1623 ///
1624 /// `self.is_boxed_dyn_error()` must be true.
1625 unsafe fn unchecked_into_dyn_error(self) -> OwnedPtr<DynError> {
1626 debug_assert!(self.is_boxed_dyn_error());
1627 let inner = self.inner.cast::<DynError>();
1628 mem::forget(self);
1629 OwnedPtr::new(inner)
1630 }
1631
1632 /// # Safety
1633 ///

Callers 3

into_anyhowMethod · 0.80
downcastMethod · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected