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

Function debug

crates/core/src/error/vtable.rs:84–92  ·  view source on GitHub ↗
(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

82}
83
84unsafe fn debug<E>(error: SharedPtr<'_, DynError>, f: &mut fmt::Formatter<'_>) -> fmt::Result
85where
86 E: ErrorExt,
87{
88 let error = error.cast::<ConcreteError<E>>();
89 // Safety: implied by all vtable functions' safety contract.
90 let error = unsafe { error.as_ref() };
91 fmt::Debug::fmt(error.error.ext_as_dyn_core_error(), f)
92}
93
94unsafe fn source<E>(error: SharedPtr<'_, DynError>) -> Option<&Error>
95where

Callers 2

fmtMethod · 0.50
debugMethod · 0.50

Calls 3

fmtFunction · 0.85
as_refMethod · 0.45
ext_as_dyn_core_errorMethod · 0.45

Tested by

no test coverage detected